封面

Windows使用powershell批量修改文件后缀

在目标目录下打开powershell:

Get-ChildItem -Path ./ -Filter *.rst -Recurse | Rename-Item -NewName { $_.Name -replace '\.rst$', '.md' }

执行即可把rst全部换成md,替换成自己需要的即可,其中-Recurse是会递归检查子文件夹,'\.rst$'是为了防止.rst.rst这样的情况出现

发布评论
全部评论(3)
avatar
雾雨玲子#1037921

可以尝试这个文件批处理软件www.extrabit.com,不过我选择python

avatar

Life is short,I use python

avatar
emmmmqwq#1033411

[stick-12][stick-1]