特定のディレクトリ構造内のすべてのファイルのコンテンツを置き換えようとしています。
get-childItem temp\*.* -recurse |
get-content |
foreach-object {$_.replace($stringToFind1, $stringToPlace1)} |
set-content [original filename]
元のget-childItemからファイル名を取得して、set-contentで使用できますか?