操做系统:Windows10 1809html
使用工具:Powershellshell
命令:工具
1 (dir '文件目录\*.原后缀名')|rename-item -newname { $_.name -replace '\.原后缀名','.要更改后缀名' }
范例:spa
1 (dir 'D:\My Documents\works\Downloads\powershell\*.txt')|rename-item -newname { $_.name -replace '\.txt','.log' }