Windows 10でファイル名を一括置換したかったので調べたところ、Powershellを開いて以下のコマンドでうまくできました。
Dir | Rename-Item -NewName { $_.name -replace "DSC_0","DSC_A" }
これで、カレントディレクトリにある全ファイルの名前に含まれる「DSC_0」が「DSC_A」に置換されます。
以下のサイトを参考にしました。
![](https://jkbys.net/wp-content/uploads/cocoon-resources/blog-card-cache/97e27c14051f98f528dfd032d4de245b.jpg)
4 Ways to Batch Rename Files in Windows 10/11
If you want to batch rename multiple files in Windows 10, first rename files in Windows Explorer, then rename files using the Command Prompt.
コメント