For while loop or just a goto statement
Posted: 05 Oct 2018 10:03
I searched some but couldn't come up with the right key words to find what I'm looking for. I need to repeatedly run a process which creates one file, than another process converts that file to another format. So I believe i need a infinite for while loop where I can just CTR-C break out when I need. I know I could get more fancy - but I just need it to work. As I want to retain these two files on each iteration, I need some variable to start at zero or 1 or what ever, run my two processes and then rename the two files with the incrementing variable.
So first pass I have File.txt and NewFile.txt - they can be renamed File1.txt and NewFile1.txt -
Second pass process create new File.txt and Newfile.txt - variable increases by 1 so my rename would be File2.txt and NewFile2.txt.
until I break out.
All seems so simple in my head but my experience with batch file and vb scripting has been very basic run commands ect. I've read some things but truely getting a headache so I thought I'd ask for a friendly shove in the right direction.
Thanks in advance
So first pass I have File.txt and NewFile.txt - they can be renamed File1.txt and NewFile1.txt -
Second pass process create new File.txt and Newfile.txt - variable increases by 1 so my rename would be File2.txt and NewFile2.txt.
until I break out.
All seems so simple in my head but my experience with batch file and vb scripting has been very basic run commands ect. I've read some things but truely getting a headache so I thought I'd ask for a friendly shove in the right direction.
Thanks in advance