XP批处理脚本重命名文件并复制到新文件夹
我有数百个图像文件。我想用批处理脚本执行两项任务。
1)我想重命名名称不带“_”的文件(如果有)并将它们移动到临时文件夹。
2)如果任何文件与文件名重复,则取出该文件中的任何一个并将其移动到指定的临时文件夹。
有人知道该怎么做吗?提前致谢...
I have hundreds image files. I want to do 2 tasks with batch script.
1) I want to rename files with the name without '_' if any file have and move them to temp folder.
2) if any file duplicates with file name then take it any of the file and move it to specified temp folder.
Anyone knows how to do this? Thanks in advance...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
对于重命名部分...您可以尝试这个方法...
对于文件移动部分...您能详细说明一下要求吗?
——尼哈尔
for the renaming part...you could try this approch...
For the file moving part...could you please elaborate the requirement a little more?
--Nihar