Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
186 views
Welcome To Ask or Share your Answers For Others

1 Answer

for %i in (*.nsf) do ( 
  rename %i single.nsf 
  do_the_job 
  pause 
) 

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...