Computer geek, and self-appointed know-it-all, Westley Annis answers all those hard 

questions about anything related to computers and technology, as well as business and 

political questions.

I Can't Print Using My Old DOS Program

I've got an old DOS program that I still use and it can only print to LPT1: or LPT2:. My printer is a network printer connected using an IP port. How can I print from this DOS program using Windows XP or Windows Vista?

The simple answer is to create a DOS pointer to your network printer. This can be done in just a few steps.

1) Share your printer. Open the Printers folder, right-click on the printer, select sharing and give it a share name. Since you will be using this in DOS, you must follow the DOS naming rules:


  • No spaces in name

  • Name cannot be longer than 12 characters

2) If you don't already know your PC's Computer Name, look it up. Right click on My Computer and then click Properties. Click on the Computer Name tab to view the name of your computer.

3) Open a DOS window and enter the following command

Net use lpt3: \\<YourComputerName>\<PrinterShareName> /persistent:yes

Substitute your computer name and the share name you assigned to the printer in step 1 and you are ready to tell your DOS program to print to LPT3:.

Bonus Answer

If you need to use LPT1 or LPT2, you need to go into your system BIOS and turn off or reassign any printer ports already assigned to LPT1 or LPT2.

Category is Microsoft Windows   (Article #88)
Comments
This site is incredible!
This site is incredible! It's amazing the questions you get asked and you always come up with the answer. I've just got to help you stay cool by buying you a Snoball!
I do have a comment, now that you mention it!









Remember personal info?


Please note that I will never send you any unsolicited
email, period. I hate it just as much as you do.

Also note that by submitting a question or comment
you're agreeing to relinquish any subsequent rights of
ownership to your material by submitting it on this site.









Ask Westley your question on technology, business, or politics!
RDF XML
Add to My Yahoo!
Subscribe in 
NewsGator Online
Feedburner
Search



All Categories
Archives by Category
Book Links
Powered by
Movable Type 3.17
© 2005 by Westley Annis. All Rights Reserved.

Valid XHTML 1.0!