开发者

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]

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜