26-02-2007, 04:09 PM | #1 | ||
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
|
Just something I came up with last night and decided to make the concept a reality.
Since DosBox allows command-line based changing of emulation parameters, this little batchfile (I know, I suck at programming <_< ) allows the user to change the EMS/XMS/UMB settings easily. k: |
||
|
|
26-02-2007, 07:53 PM | #2 | ||
Join Date: Jun 2004
Location: Jan Mayen, Svalbard and Jan Mayen
Posts: 2,167
|
Nice one.
You might want to take a look at the db-info.bat created here http://vogons.zetafleet.com/viewtopic.php?t=14601 It shows some power of the config utility. (things you probably didn't know)
__________________
Flowing with the stream of life |
||
|
|
27-02-2007, 08:53 AM | #3 | ||
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
|
And it has also shown me how I can do certain things better than I did them in this one.
Thanks!!! k: I was thinking how to code a more extensive config utility without having to do it the way I did this one (grossly inefficient code). Guess I know what I'll be doing this evening |
||
|
|
28-02-2007, 07:24 AM | #4 | ||
Join Date: Jun 2004
Location: Jan Mayen, Svalbard and Jan Mayen
Posts: 2,167
|
it seems the script got even more advanced
http://vogons.zetafleet.com/viewtopic.php?t=14619
__________________
Flowing with the stream of life |
||
|
|
28-02-2007, 08:21 AM | #5 | ||
Join Date: Mar 2006
Location: ,
Posts: 4,613
|
Better use input parameters, it's more agile. For example, EMS.BAT:
Code:
@echo off if %1=="true"**goto true if %1=="TRUE"**goto true if %1=="on"****goto true if %1=="ON"****goto true if %1=="false" goto false if %1=="FALSE" goto false if %1=="off"** goto false if %1=="OFF"** goto false config -get "dos ems" echo. echo. goto end :true config -set "dos ems=true" goto end :false config -set "dos ems=false" :end Code:
@config -set "cpu cycles=%1"
__________________
Life starts every day anew. Prospects not so good... |
||
|
|
28-02-2007, 04:12 PM | #6 | ||
Join Date: Jan 2007
Location: Nunspeet, Netherlands
Posts: 31
|
I like he idea, but I see there is room for improvement.
I don't know if it's too difficult to check in advance what all the settings are instead of enabling them all. Maybe it is an idea to use a real programming language like C, because you can use more functions and control structures. Keep up the good work. |
||
|
|
28-02-2007, 04:17 PM | #7 | ||
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
|
Quote:
Quote:
|
||
|
|
28-02-2007, 09:20 PM | #8 | ||
Join Date: Mar 2006
Location: ,
Posts: 4,613
|
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" ...
__________________
Life starts every day anew. Prospects not so good... |
||
|
|
28-02-2007, 09:54 PM | #9 | ||
Join Date: Jan 2007
Location: Nunspeet, Netherlands
Posts: 31
|
Quote:
Maybe when I'm really bored then I'll try a version in C or maybe in Quickbasic, but right now I think I already have enough unfinished projects going. Good luck with your project. |
||
|
|
02-03-2007, 01:51 AM | #10 | ||
Join Date: Apr 2005
Location: Wellington, New Zealand
Posts: 890
|
Nice one the_fifth_horseman. I like it as I can use it to do stuff I never knew DOS box could do.
|
||
|
|
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 |
|
|
||
  |