任何人都可以告诉我他们是否认为这个Powershell脚本有问题.
Dir | where {$_.extension -eq ".txt"} | Rename-Item –NewName { $_.name –replace “.“,”-” }
对于当前目录中的每个文本文件,我试图用连字符替换文件名中的所有句点.提前谢谢.
powershell powershell-2.0
powershell ×1
powershell-2.0 ×1