DosBox Emulator for Printing to USB

I am trying to find a way to print from DosBox (www.dosbox.com) to a USB port. There is no support for USB only LPT.  I only have a usb printer. Does anyone know of a way to redirect LPT calls from DosBox to the USB port on my system?
LVL 5
netbonesAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Steve KnightIT ConsultancyCommented:
I haven't tried with DOSbox as haven't put it on this new machine yet, most likely print to LPT1: port from DOS application, then in Windows:

Share your USB printer as "USBPrinter" say.
Then from command prompt:

net use Lpt1: \\computername\USBPrinter /persistent:yes

Then you should be able to print to lpt1: from the local machine, e.g. from command prompt still:

dir > lpt1:

Steve
0
hdhondtCommented:
On possible problem: this will only work if the printer understands plain ASCII text, or PCL5.

Many USB printer (all the low-cost ones) are GDI printers, which rely on the Windows graphics engine to convert the page into dots on the paper. These printers will not understand anything DOSBox can send to it.

Note, the NET USE command only applies if you are running DOSBox under Windows.
0
Gerwin Jansen, EE MVETopic Advisor Commented:
Hi, there is dosprint that is supposed to be able to capture and send to USB as well, download here.

There is also dosprn. I don't have a USB printer available so you'd have to test yourself ;)
0
hdhondtCommented:
Of course you're correct, gerwinjansen - I overlooked that.

DOSPrn takes the output from a DOS program and converts it into something the printer understands. It also captures the output to LPT1 (which is what DOSPrint does).
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
netbonesAuthor Commented:
All solutions worked, however I ended up going with DosPrint.  Thanks everyone!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft DOS

From novice to tech pro — start learning today.