Rename different files to one file name, one at a time
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 fil开发者_开发知识库es are done.
how?
for %i in (*.nsf) do (
rename %i single.nsf
do_the_job
pause
)
This should work:
for /f %%fname IN (‘dir /b *.nsf’) do call myprog %%a
[src]
精彩评论