UNABLE to print reports on USB Printer from DOS Base Application

I am using a latest a Compaq Presserio NOTE Book which has no LPT Port.

I have installed a USB2LPT1 Interface Cable and  Configured it and attached a Dot matrix Printer (TVS-MSP) having a parellel port only with the cable.

The printer with above interface is working fine with
windows base application ie:WORD,EXCELL etc. but
unable to print from DOS Application(FOXPRO for DOS:FPD26) as My accounting application was developed in Foxpro for dos.

Please solve the problem without any financial investment

Who is Participating?
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.

Will SzymkowskiSenior Solution ArchitectCommented:
Hello there,

Is this a network Printer?

If it is you might want to use the net use command.

net use lpt?: \\server\printer /Persistent:yes

Do this in the command prompt

/persistent:yes is use to save the command line. If you don't put this at the end of the command wheny you reboot your computer next time you will have to do this command again.

Hope this helps
Will SzymkowskiSenior Solution ArchitectCommented:
Here is the microsoft link to your problem if the following doesn't work


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
Will SzymkowskiSenior Solution ArchitectCommented:
Also if its just a local printer try reinstalling it. When you go through the Print Wizard it should ask you if you would like to print to Dos based Programs.
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

If the program was done the "old way", it will access the printer port directly, instead of using a hardware abstraction layer.
So, it will only work with a printer plugged into the parallel port directly.

In order to print from DOS in an offline environment like the stores, you will need to do a couple of things.

1)      Install the Microsoft Loopback Adapter

a)      In Control Panel, double click on Add Hardware.

b)      Click Next

c)      When the scan finishes, select "Yes, I have already connected the hardware"

d)     Click Next

e)      Scroll to the bottom of the list and select "Add a new hardware device"
Click Next

f)       Select "Install the hardware that I manually select from a list (Advanced)"

g)      Click Next

h)      Select "Network Adapters"

i)        Click Next

j)        Select "Microsoft" under the Manufacturer list.

k)      Select "Microsoft Loopback Adapter" in the Network Adapter list.

l)        Click Next

m)    Click Next

n)      Click Finish

2)      Configure the Adapter

a)      The loopback adapter is a virtual network adapter and can be configured the same as a regular network card.

b)      Set the adapter to have a static IP address such as

3)      Share the printer.

a)      I recommend you use a share name that you will remember.  I used “Printer” in the new machines that are already deployed.

4)      Capture the printer port.

a)      NET USE LPT1: \\[Computer Name]\Printer /PERSISTENT:YES


1) Install your USB printer
2) Enable Sharing on your USB printer
3) start> run> net use  lpt1: \\localhost\<printer share name> /persistent:yes
4) Create a file c:\test.txt and put some test data in it
4) start> Run> PRINT c:\test.txt    <This will print to LPT1 automatically - which should now be your USB printer>

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

From novice to tech pro — start learning today.