Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use DOSBox and it works pretty well, but each time I want to run the application I have to launch DOSBox, then type:

mount c c:\path\to\app
c:
cd app
app.exe

Can I somehow automate the process, like with a batch file or something?

Or are there other DOS emulators that let you launch programs easier?

share|improve this question
up vote 2 down vote accepted

DOSBox has this feature itself, defined on the configuration file:

You can save yourself some time by having DOSBox automatically MOUNT your folders and change the drive to C:. In original DOS based operating systems a file called AUTOEXEC.BAT contained any commands that the user wanted executed every time the computer booted up. This functionality is simulated by the [autoexec] section of the dosbox.conf file.

share|improve this answer

I have done this in VB using:

dos32Proc = Diagnostics.Process.Start("C:\Program Files (x86)\DOSBox-0.74\DOSBox.exe", " -c mrpd"); 
dos32Proc.WaitforExit()

mrpd is a bat file, and will execute several lines in the DOSBOX command prompt and finish with the exit command. You will also need a mount command to ensure you are in the correct directory for the command prompt.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .