Dos based program can't print under Win2000

Posted on 2005-05-15
Last Modified: 2010-04-14
In first, sorry for my english but i'm french.

One of my customers run a former dos based program under NT4 . It works fine on a NT4 Machine and a HP Deskjet 6122 connected of course
on the LPT1 port.

We move the programs on a win2000 based computer and it works good except we can't print. We have alwas an ERROR ADDQUEUEENTRY.
I test every settings in the property of the printer. ( Raw/ emf ..spool ..) but nothing works. I test a echo "blablabla" > LPT1 in a DOS console and it works every time.

Do you know a solution en in order to be sure that a dos program can print under Win2000 ? By a fake LPT Capture or perhaps by a third party program  ?

Thanks by adance.

Question by:intercube
    LVL 7

    Expert Comment

    You could try sharing your printer and then mapping it to LPT1:.
    LVL 1

    Author Comment

    I will try tomorrow morning .....
    I 'll post a response tomorrow afternoon.

    Thanks by advance....i could work.


    LVL 1

    Accepted Solution


    I had a similar problem on a machine that was running Windows XP. What I found I had to do in order to make the share / remapping work was change the settings in Windows XP so the LPT1 port became LPT2. Once I did that and shared the printer I created a batch file to connect and disconnect the network printer when the DOS program ran:

    net use lpt1: \\computername\printershare
    net use lpt1: /disconnect

    Good Luck,

    LVL 7

    Expert Comment

    Remove and re-add the printer.  Then make sure that the printer you are printing to is set as default.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
    For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    754 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now