rtcvb32: DOS batch file programming is a bit confusing. The most i've done is IF EXIST checks to run an ecm/unecm program for my dosbox games which saves like 50Mb per CD in the final 7z file.
But prepping the folder beforehand, then steps
1) rename folder to run
2) run game
3) rename folder separating out again
I did similarly ramdisk thread some years ago, mounting a compressed iso of a game, running the game, then unmounting after.
But we'll have to see if just a couple folder renames are enough to get away from it...
Yep DOS can be confusing if you are not familiar enough with it, and it is also something many folk use far less often these days in most cases. If you do know what you are doing it can be quite quick and simple.
I wouldn't bother with step 3). As the idea is whatever shortcut you run, checks to see if a certain folder exists and acts accordingly.
For instance, if the Steam AppData folder was active, then the GOG AppData folder, renamed to such would exist.
C:\Users\Username\AppData\Local\Baldur's Gate 3 (GOG) If you ran the Baldur's Gate 3 (GOG) shortcut, then that folder would be detected, and it would know that the current active folder for the game, needed to be renamed first.
C:\Users\Username\AppData\Local\Baldur's Gate 3 to
C:\Users\Username\AppData\Local\Baldur's Gate 3 (Steam) Then it would rename the following GOG folder.
C:\Users\Username\AppData\Local\Baldur's Gate 3 (GOG) to
C:\Users\Username\AppData\Local\Baldur's Gate 3 If the correct folder is already active, for either shortcut, then nothing needs to be renamed.
neumi5694: If someone for example closes the batch file while the game is running, this could be a problem.
If you used something like what I just outlined, then closing the BAT file wouldn't have any impact, wouldn't even need to be running still in fact.