-1

我有文件名为..

82011.nsf
63113.nsf
55555.nsf

我必须将每个文件重命名为 single.nsf(例如 ren 82011.nsf 到 single.nsf)

然后使用程序对该文件进行操作(single.nsf)

然后重命名下一个文件(63113.nsf 到 single.nsf),然后使用程序对该文件(single.nsf)等进行操作

我想要一个批处理文件来执行 nename,暂停(以便我可以运行另一个程序),然后进行下一次重命名,直到所有 nsf 文件都完成。

如何?

4

2 回答 2

1
for %i in (*.nsf) do ( 
  rename %i single.nsf 
  do_the_job 
  pause 
) 
于 2010-09-04T15:14:21.227 回答
-1

这应该有效:

for /f %%fname IN (‘dir /b *.nsf’) do call myprog %%a

[]

于 2010-09-04T14:32:39.757 回答