VOGONS


First post, by GBonness

User metadata
Rank Newbie
Rank
Newbie

Can you start a 32-bit program from DOSBox by simply adding it to dosbox.config?
At the end of dosbox.config I have the following lines:

echo Mounting "F:\Ag Related\Farmacct" as harddisk drive C.
mount C "F:\Ag Related\Farmacct"
C:
# Start DOSPrinter to monitor temprint and print it out whenever it changes.
start DOSPrinter.exe /R /DEL temprint

# 'Frmactwp' is Farmacct for windows only printer
Frmactwp

# Unload DosPrinter
DOSPrinter.exe /U
exit

When I run the above in DOSBox, Frmactwp works correctly, but DOSPrinter doesn't seem to do anything. When I go back and open temprint manually with DOSPrinter it prints the report correctly. How can I get it to activate in conjunction with DOSBox?

(DOSPrinter is a 32-bit program to print a text file containing old EP2 printer control codes. Frmactwp is my own program (16 bit) written in QuickBasic.)
(Frmactwp.exe, DOSPrinter.exe, and temprint are all located in folder F:\Ag Related\Farmacct)

Reply 1 of 2, by MiniMax

User metadata
Rank Moderator
Rank
Moderator

DOSBox don't support multitasking (e.g. running your DOSPrinter program at the same time as Frmactwp is running).
You have to start DOSPrinter *outside* of DOSBox. Easyist way to do that is to create a small BAT file with just 2 lines:

\path\to\your\dosbox.exe -noconsole
start \path\to\dosprinter.exe

DOSBox 60 seconds guide | How to ask questions
_________________
Lenovo M58p | Core 2 Quad Q8400 @ 2.66 GHz | Radeon R7 240 | LG HL-DT-ST DVDRAM GH40N | Fedora 32

Reply 2 of 2, by GBonness

User metadata
Rank Newbie
Rank
Newbie

Thanks!
I got it to work that way.