Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
DOSBOX: Start programs on one line
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
beandog
Developer
Developer


Joined: 04 May 2003
Posts: 2063
Location: /usa/utah

PostPosted: Sun Apr 18, 2004 6:13 pm    Post subject: DOSBOX: Start programs on one line Reply with quote

DOSBOX is great, but its a pain in the butt to start something with just the command dosbox. However, I found a bit of a workaround.

Here's how I start Gold Rush:

Code:
dosbox -c "mount c /home/steve/games" -c "c:" -c "cd goldrush" -c "sierra.com" -c "exit"


What it does is first mounts my games directory as the c: drive, then changes to the c: drive, then changes to the goldrush directory and finally runs sierra.com.

The cool thing is that when goldrush finishes running, dosbox closes itself with the last command, "exit"

Another way to do the same thing would just create some .bat scripts for DOS, and then do:

Code:
dosbox -c "mount c /home/steve/games" -c "c:\bats\goldrush.bat"


But then you'd have to do the same thing in a batch file, so I'm not sure it would save that much time.

Either way, you can use that line to create menu entries for dosbox games, which is what my goal was all along. Maybe dosbox in the future will make it easier to pass commands.

Steve
_________________
If it ain't broke, tweak it. packages | dvds | blurays | blog | wiki
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum