View Single Post
Old 02-03-2007, 11:43 AM   #1
The Fifth Horseman
FUTURE SCIENCE BASTARD
 
The Fifth Horseman's Avatar


 
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
Default

<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.
__________________

"God. Can't you people see I'm trying to commit a crime against science and nature here?"
-- Reed Richards
The Fifth Horseman is offline                         Send a private message to The Fifth Horseman
Reply With Quote