我有一個包含圖像的文件夾,我需要重新命名。如何使用powershell重新命名帶有目錄名稱的文件
目前該文件是這樣的:
C:\Images\Today\4714\IMG_2342.jpg
C:\Images\Today\4714\IMG_2343.jpg
C:\Images\Today\4714\IMG_2344.jpg
C:\Images\Today\4714\IMG_2345.jpg
我需要他們這樣的:
C:\Images\Today\4714\4714_1.jpg
C:\Images\Today\4714\4714_2.jpg
C:\Images\Today\4714\4714_3.jpg
C:\Images\Today\4714\4714_4.jpg
我怎樣才能做到這一點在PowerShell中嗎?
您是否嘗試過這個其他職位的解決方案 - 如何我是否在命令提示符下重命名一堆文件 http://superuser.com/questions/347931/how-do-i-rename-a-bunch-of-files-in-the-command-prompt – Vonpato