|
Answer» (PARDON my ga ga nooB LINGO) -I am working on a game that has, and can only utilize, 5 'Teams' at a time. These are in a single folder. So to make more (20) teams, I created a batch file that sequentially shuffles 3 other new sets of 5 Team folders, with the original single set of 5, through just 'ren'aming them. Thus each time I run the batch file, I switch the set that the game uses, to the next set (thus rotating between 4 total sets of 5 team folders). -I then put a 'pause' in to display a confirmation of what the user is about to do (with a note to opt-out by just closing the cmd window):
@echo off echo This will: echo -ROTATE THE 4 TEAMS (1 step)- echo . echo (To cancel, close this cmd window.) echo . pause
ren... ren... etc.
This all works fine. Where I need help is: While the program is paused for user input, I would like it to also somehow display a correlating number for the 'in-use' file ('1', '2', '3', or '4'). Whenever the batch file is run, this number would indicate to the user which one of the 4 sets he/she is presently SELECTING for the game to use. Do you know of a WAY to do this in a batch file? Perhaps, if it could just count each time the batch file was run (something like 'x=x+1' ??) and then display it ('x') I think that might work, but I'm at a loss concerning how to do it in DOS.
Thanks for your input. ZonerZone
|