在同一时间不同的文件重命名为一个文件名一 [英] Rename different files to one file name, one at a time
本文介绍了在同一时间不同的文件重命名为一个文件名一的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个名为的文件。
82011.nsf
63113.nsf
55555.nsf
我必须重新命名每个文件
single.nsf(例如仁82011.nsf到single.nsf)
然后使用一个程序作用于该文件(single.nsf)
然后重命名下一个文件(63113.nsf到single.nsf)
然后用一个程序来作用于该文件(single.nsf)
等等
我想一个批处理文件做nename,暂停(这样我就可以运行其他程序),然后做下重命名,直到所有NSF文件就完成了。
怎么样?
解决方案
为%i的(* .NSF)做(
重命名%我single.nsf
do_the_job
暂停
)
i have files named..
82011.nsf
63113.nsf
55555.nsf
i must rename each file to single.nsf (for example ren 82011.nsf to single.nsf)
then use a program to act on that file (single.nsf)
then rename the next file (63113.nsf to single.nsf) then use a program to act on that file (single.nsf) etc
I want a batch file to do the nename, pause (so i can run the other program), then do the next rename until all nsf files are done.
how?
解决方案
for %i in (*.nsf) do (
rename %i single.nsf
do_the_job
pause
)
这篇关于在同一时间不同的文件重命名为一个文件名一的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文