![]() |
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. :ok: |
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) |
And it has also shown me how I can do certain things better than I did them in this one.
Thanks!!! :ok: 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 :D |
it seems the script got even more advanced
http://vogons.zetafleet.com/viewtopic.php?t=14619 |
Better use input parameters, it's more agile. For example, EMS.BAT:
Code:
@echo off Code:
@config -set "cpu cycles=%1" |
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. |
Quote:
Quote:
|
To check the settings in advance use the same structure as what Data linked:
Code:
config -get "dos ems" > nul |
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. |
Nice one the_fifth_horseman. I like it as I can use it to do stuff I never knew DOS box could do.
|
<div class='quotetop'>QUOTE(Japofran @ Feb 28 2007, 11:20 PM) [snapback]281341[/snapback]</div>
Quote:
|
I haven't tried DB-INFO.BAT but I've just tried my code with DOSBox 0.65 and it works all right. (??)
|
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. ^_^ |
Wow this look great :ok:
I never thought you could make it like this just in a bat file. And the code also looks ok. |
The current time is 05:29 PM (GMT) |
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.