Mike.Reiner
Member

Posts: 624
Registered: 01-05 |
I'm not really much for front ends, and I mostly use batch files for all my needs, but as you could imagine, I would have to edit the file by hand every time i wanted to use a different engine to play. Yeah, I know there are front ends. No, I don't want to use one.
I've done a little bit of searching and I haven't been able to find anything that seems to be useful, so I apologize if somebody finds an answer on their first google search attempt.
What I'm trying to do is take a batch file, place two (or more) possible commands in it, and have it execute one of those commands depending on which key I press. So for example, let's say I have these two commands for playing Alien Vendetta:
code:
set DOOMSAVEDIR=.\engines\PrBoom+\Batch\Save\av
start .\engines\PrBoom+\batch\glboom-plus.exe -iwad .\engines\vanilla\doom2\doom2.wad -file .\pwads\av.wad -deh .\pwads\av.deh -complevel 2
and
start .\engines\gzdoom\batch\gzdoom.exe -iwad .\engines\vanilla\doom2\doom2.wad -file .\pwads\av.wad -file .\pwads\av.deh
As you could infer, one of those commands will launch the specified files using GlBoom-Plus, while the other will launch it using GZDoom.
Is there some way I can make the batch ask me which one I want and perform the according task I choose?
|