Go Back   Forums > Community Chatterbox > Tech Corner > Programming
Memberlist Forum Rules Today's Posts
Search Forums:
Click here to use Advanced Search

Reply
 
Thread Tools Display Modes
Old 02-03-2007, 11:43 AM   #11
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
Old 02-03-2007, 12:53 PM   #12
Japo
Autonomous human
 
Japo's Avatar


 
Join Date: Mar 2006
Location: ,
Posts: 4,613
Default

I haven't tried DB-INFO.BAT but I've just tried my code with DOSBox 0.65 and it works all right. (??)
__________________
Life starts every day anew. Prospects not so good...
Japo is offline                         Send a private message to Japo
Reply With Quote
Old 05-03-2007, 08:50 AM   #13
The Fifth Horseman
FUTURE SCIENCE BASTARD
 
The Fifth Horseman's Avatar


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

Figured out why. Turned out that after leaving Norton everything worked allright.

So I went and re-worked the code (adding appropriate error messages). The entire thing weighs in at 2019 bytes now, 1394 without the chunks responsible for error reporting.

I might actually expand this thing to allow control of most DosBox 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
Old 05-03-2007, 03:33 PM   #14
nitro
Forum hobbit

 
Join Date: Jan 2007
Location: Nunspeet, Netherlands
Posts: 31
Default

Wow this look great k:
I never thought you could make it like this just in a bat file. And the code also looks ok.
nitro is offline                         Send a private message to nitro
Reply With Quote
Reply


Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking For An Old Wizard Vs Wizard Game Blade13z Cold Cases 2 26-06-2007 05:39 AM
Ultimate Wizard [NON-PC] chainsoar Invalid Requests 1 28-06-2006 09:23 PM
Extended Memory Manager In Dosbox `? swiss Troubleshooting 2 02-11-2005 09:16 PM
Dosbox 0.63 And Memory Manager Problems Ionize Troubleshooting 4 12-01-2005 09:54 AM


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump
 


The current time is 10:46 PM (GMT)

 
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.