First post, by Zup
- Rank
- Oldbie
I've got some games installed in my dosbox folder, using CUE+BIN (i.e. Red Alert) or CUE+BIN+OGG to enable CD Audio (i.e.: HoMaM 2), and also a "pure" DOS system (a Toshiba Laptop). So I'd like to use the same start-up method everywhere. The logic would be
IF dosbox_present THEN
(use imgmount)
ELSE
(no thanks, I will use shsucdx)
So, is there any method of detecting DOSBox from .BAT files? I'm thinking of using something like...
...
VER | FIND "DOSBox"
IF ERRORLEVEL 1 GOTO use_imgmount
(mount the drive using shsucdx)
GOTO start_game
:use_imgmount
(mount the drive using imgmount)
GOTO start_game
:start_game
...
But find is not a DOSBox tool (although it's present on DOSBox-x).
Is there any command that can detect if DOSBox is running and report via errorlevel?
(BTW, I've been unable to find documentation about internal commands that list errorlevel outputs)
I have traveled across the universe and through the years to find Her.
Sometimes going all the way is just a start...