VOGONS


First post, by J_vanderstel

User metadata
Rank Newbie
Rank
Newbie

Hi All,

I've used DOSBox on a Win XP computer for years to run batch files to run my DOS programs, but I'm brand new to using DOSBox on a 64 bit Win 7 machine.

I've been in the process of attempting to moving everything over to a 64 bit Win 7 machine, but I've looked all over for months and can't find how to setup a Win 7 shortcut on a 64 bit machine to have DOSBox run a .bat file.

I need to start my program with a batch file so I can have the printer port captured and redirected to a file with some misc DOS utilities.

How can that be done? I did it with Win XP, but my new 64 bit Win 7 doesn't seem to allow it. I'm completely stumped on how to do this!

Your benefit of anyone's experience in doing that would be very much appreciated.

Thanks for your patience.

John Vander Stel
Grand Rapids, MI

Reply 1 of 5, by Mau1wurf1977

User metadata
Rank l33t++
Rank
l33t++

I used a tool once that turns a .bat file into an .exe file. Then you can create a shortcut.

But if it's to do with running DOSBox games this should be needed. Just create a link to the DOSBox executable and adjust the parameters to load a different config file.

The readme has more information on this or if you already have some games from GOG.com look at those games from GOG.com as a template.

Reply 2 of 5, by J_vanderstel

User metadata
Rank Newbie
Rank
Newbie

I've read a lot about the .conf file but don't know exactly what to put in the autoexec section of the conf file since I'm supposed to use the format "c/dosbox/program.exe -config pathtoexecutable" to launch Dosbox.

Will those old DOS based utils that convert a bat file into an executable work in a 64 bit environment or produce a 64 bit compliant executible?

I'm still rather confused. 🙁

Thank you so much for your patience.

John Vander Stel
Grand Rapids, Michigan

Reply 3 of 5, by collector

User metadata
Rank l33t
Rank
l33t

No need to convert your batch to an EXE. Just create your custom dosbox.conf with your mountings in the autoexec section, CD to your mounted C: drive, followed by a "call whatever.bat" as the last line. Just make sure that the batch exists in the folder that you have mounted as your C: drive and that it conforms to the DOS naming convention.

As for printing, you will need a special build of DOSBox for this ability.

Reply 4 of 5, by J_vanderstel

User metadata
Rank Newbie
Rank
Newbie

Thank you so much, Collector Oldbie. 😀

John

Reply 5 of 5, by eL_PuSHeR

User metadata
Rank l33t++
Rank
l33t++

[Thread moved to DOSBox General Section]