xianthar has the right idea but his syntax is wrong.
He is renaming which means that on the 2nd attempt to run the batch file it will not be able to rename since he is trying to rename the files to the same filename and will error out because the file already exists.
Also, no need for paths just perform the operations within the directory. It would be better to create a "template" file and just overwrite the eq2.ini file with the template you want. You can also launch EQ2 just as easy from the same batch file.
Example:
First create two eq2.ini template files (or however many you wish). Name these in some sort of standard or maybe with a description you wish. For instance, I would suggest naming it after the particular UI. Something like UITye_St.ini for Tyejae Steel.
@echo off
cls
REM run Tyejae Steel Interface
echo Launching EQ2 with Tyejae Steel Interface ...
:START
REM change below to match your drive letter and proper path
c:
cd \games\eq2
copy uitye_st.ini eq2.ini
goto RUN_EQ2
:RUN_EQ2
eq2
goto END
:END
Name the batch file the same as you named the template ui file only with a .BAT extension, then just link to it from your Desktop. You could run as many interfaces as you wanted and just switch between them by running the different batch files.
NOTE: Yes, I have a lot commands that aren't "essentially" needed (IE., goto and echo off, etc., however, I tend to write extensive batch files so I always stick with a more proper format).
|