I'm pretty new to batch program, but I've been asked at work to create a batch that renames one file, then renames another file to the name of the first file. Then the next time it runs, I'd like it to set the file names back to the original. I can get it to change one way, but I'm not sure about how to change it back.
What I was thinking was (in pseudo-code):
if (temp-test.txt exists)
rename test.txt --> training-test.txt
rename temp-test.txt --> test.txt
rename test.txt --> temp-test.txt
rename training-test.txt --> test.txt
Basically what I need to know is the best way to determine if test-temp.txt file exists
Thanks very much for your help.