Okay, so here's my issue.
I have a program (
program1) that when run looks for an INI file that has info about the user stored in it (
userinfo.ini). The program does not support multiple users, so my idea is to have two INI files, one for
user1 and another for
user2. The INI file name, however, has to remain named
program1 won't recognize that it exists.
So here was my plan,
I have two INI files in the root folder of the program. One is named
userinfo.ini.USER1 and the other is named
When the BAT file for
user1 is clicked, I want it to check to see if
userinfo.ini.USER1 exists, and if so rename
userinfo.ini.USER2 and then rename
userinfo.ini.USER1 doesn't exist, it will do nothing.
The BAT file for
user2 would do essentially the same thing, just flipped.
Once that's done, the BAT file is to execute
Here's the code I have written for that:
IF EXIST userinfo.ini.USER1 ren userinfo.ini userinfo.ini.USER2 ren userinfo.ini.USER1 userinfo.ini START program1.exe
However, when run, CMD tells me
The syntax of the command is incorrect.
How do I have this coded incorrectly, and how should it be coded to accomplish my goal?
Thank you for all help beforehand, it's much appreciated.