talk is cheap show you the code
Get-ChildItem -Path "D:\project\1018\118\09_47_47_2704" -Filter *.jpg | Rename-Item -NewName { $_.Name -replace '\.jpg','.png' }
这篇文章介绍了如何使用WindowsPowerShell中的Get-ChildItem和Rename-Item命令,实现从.Dproject路径下的jpg文件名转换为.png,展示了一种简单的IT技术命令行操作技巧。
talk is cheap show you the code
Get-ChildItem -Path "D:\project\1018\118\09_47_47_2704" -Filter *.jpg | Rename-Item -NewName { $_.Name -replace '\.jpg','.png' }
903
1126

被折叠的 条评论
为什么被折叠?