rename files in powershell

后端 未结 2 974
醉梦人生
醉梦人生 2021-01-24 20:12

I would like to ask for help in renaming files in given folder.

I would like to change characters \"vol._\" to \"vol.\"

thanks for help

2条回答
  •  孤城傲影
    2021-01-24 20:34

    What about:

    gci c:\folderpath -include vol._* | rename-item -newname {$_.name -replace 'vol._', 'vol.'}
    

提交回复
热议问题