<div class='quotetop'>QUOTE(Japofran @ Feb 28 2007, 11:20 PM) [snapback]281341[/snapback]</div>
Quote:
To check the settings in advance use the same structure as what Data linked:
Code:
config -get "dos ems" > nul
if %CONFIG%=="true"**...
if %CONFIG%=="false" ...
Replace the "..." with commands, a goto one if you want more than one command to be executed for each option. You wouldn't need the %CONFIG% variable to be created if the CONFIG command returned errorlevels, but it always returns 0. But still command prompt input is faster than menus. I won't start with C code, I'm not that bored right now. :P
[/b]
|
Tried that, doesn't seem to work. In fact, DB-info doesn't seem to cope well with any of the DosBox versions I have installed on my PC - reports v0.65 as 0.63 or lower, and for 0.66 it doesn't return the values for settings.