So one of my batch files just opens another program with a few arguments that are always the same. What I'd like it to do, however, is for one argument to change every time I run the batch file. Instead of always specifying the same file name, I'd like for it to increase by one every time it runs. So something like this:
Run batch file, batch file calls this:
programtorun.exe option1 FILE01 option2
Run batch file again, it runs this:
programtorun.exe option1 FILE02 option2
Run batch file a third time, it does this:
programtorun.exe option1 FILE03 option2
How can I get a batch file to just up the filename by 1 every time I run it? Or is it even possible?
Thanks!
2007-09-30
08:19:02
·
1 answers
·
asked by
Doorrat
3
in
Computers & Internet
➔ Programming & Design