VOGONS

Common searches


First post, by alanmac

User metadata
Rank Newbie
Rank
Newbie

I have installed and set up DOSBox and it is working fine. I can run the DOS application I need. Now I want to create a batch file that will launch DOSBox, mount the folder, change the drive and run the DOS application. I have created the batch file and it launches DOSBox and I have the DOS prompt, but thereafter I am stuck. To put it simply I want the batch file to place commands at the DOS prompt in DOSBox, and to simulate an ENTER. As each command had been executed I want it to move on to the next command. If I can only get it to mount the drive I will be able to figure out the other commands. Any help will be much appreciated.

Reply 1 of 12, by dr_st

User metadata
Rank l33t
Rank
l33t

Welcome to the forum.

This should really be in DOSBox, and not in DOS.

You should create the batch file in the DOSBox environment (probably inside the folder that gets mounted), then add lines in DOSBOX.CONF, in the Autoexec session to mount the drive, and execute your batch file.

https://cloakedthargoid.wordpress.com/ - Random content on hardware, software, games and toys

Reply 3 of 12, by collector

User metadata
Rank l33t
Rank
l33t

Note in the future that you should ask DOSBox question in the DOSBox forums. DOSBox

The Sierra Help Pages -- New Sierra Game Installers -- Sierra Game Patches -- New Non-Sierra Game Installers

Reply 4 of 12, by alanmac

User metadata
Rank Newbie
Rank
Newbie

Thank you for your prompt replies, and welcome. If you would like to move this to DOSBox please do so. I am afraid I need a bit more help, sorry. How do I create a batch file in the DOSBox environment? I used Notepad to create this batch file and posted it on my Desktop. What I have coded does launch DOSBox. All that would seem to be wrong, I think. Regarding adding a line to the Autoexec session, I am using Windows 10 and am new to this. I thought Autoexec.bat had been dropped? Am I wrong on this?

Reply 5 of 12, by dr_st

User metadata
Rank l33t
Rank
l33t
  1. Think of it as two batch files - one that just runs DOSBox, put this one on your desktop; the second one will run INSIDE DOSBox, put it inside the folder which DOSBox will mount.
  2. DOSBox has a config file, named DOSBox.conf. It can be in the DOSBox directory, or somewhere in %Appdata%, in which case there will be a batch file to edit it. At the end of the config file there is an [autoexec] section. Lines there will be automatically executed when DOSBox loads, as if you ran them from the DOSBox commandline. There you should place the commands to mount your folder, and run your application.

https://cloakedthargoid.wordpress.com/ - Random content on hardware, software, games and toys

Reply 6 of 12, by alanmac

User metadata
Rank Newbie
Rank
Newbie

Thanks. Still struggling. I do have one batch file on my Desktop which launches DOSBox. But how to create another. If I go to Appdata, where I have DOSBox.conf I cannot see how to edit it. Or where is this batch file I can use to edit it?

Reply 9 of 12, by alanmac

User metadata
Rank Newbie
Rank
Newbie

Can I ask one further question. How, when I exit the DOS program, can I automatically close the two DOSBox windows? Or is it possible when the DOS application has launched that only that application window opens, and not the DOSBox Status Window. And then when the DOS program has been closed the only window to close is the window it appeared in. How can I make the running of the DOS program appear exactly as it would if it was compatible with W10?