Question about Printers & Copiers

2 Answers

Printing from Dos Prompt

How can we print from the dos prompt.The computer system OS is Windows XP and connected in LAN.Our machine also connected in the LAN by giving IP address.I tried lpr command but failed.Pls suggest.

Posted by on

2 Answers

  • Level 1:

    An expert who has achieved level 1.

  • Contributor
  • 1 Answer
Re: Printing from Dos Prompt

Hi how man i know because how it search the printer server is DOS prompt.

Posted on Feb 07, 2013

  • Level 1:

    An expert who has achieved level 1.


    An expert that hasĀ over 10 points.


    An expert whose answer gotĀ voted for 2 times.

    Problem Solver:

    An expert who has answered 5 questions.

  • Contributor
  • 15 Answers
Re: Printing from Dos Prompt

1. Save your text file (.txt).

2. On the command prompt navigate to that directory

3.Type "Lpr -S -P lp text.txt"

Substitute for your copier's ip

Substitute text.txt to filename.


Or you can: to print from MS-DOS apps.

1. Share the printer on a networked windows computer. Make sure you make the name MS-DOS compatible.

2. At a DOS prompt, type the following command:
"net use lpt1: \\servername\printer_share/persistent:yes"

NOTE Servername=computer name

printer_share=printers share name


Posted on Oct 17, 2007

Add Your Answer

0 characters

Uploading: 0%


Complete. Click "Add" to insert your video. Add


3 Points

Related Questions:

1 Answer

I have Zebra LP2844 printer and Windows Vista OS. I have installed Zebra LP2844 and ZDesigner LP 2844 drivers and I want to use ELP to print text, barcode etc. Printer is connected to computer via USB. How...

To send text to printer in dos command you should first install a driver from
then in the properties you can use send file to printer.
To send the files from command :
Check if the program ssdal.exe has been correctly installed.
to have help use ssdel help send at dos prompt
to send the file
ssdal send filename printername should do the trick
hope it helps

Aug 01, 2011 | Zebra LP 2844 Thermal Printer

1 Answer

My printer stopped printing? Canon Pixma 210 New

Choose Commamd prompt, right click mouse and run as administrator (You should be in this command C:\WINDOWS\SYSTEM32- If not type this command when you in the dos command prompt "CHDIR C:\WINDOWS\SYSTEMS32\ and press enter")
Type the letter "cmd"
Type the word "net stop spooler"
Go to C: drive
Choose to Windows Folder
Click show content
Choose system32 folder
Choose spool folder
Choose printer
And delete all printing jobs pending
Again go back to CMD window and type the word "net start spooler"
Restart your computer and must also turn off your printer and then switch it on.
It will work fine right now
I hope it helps you

Apr 20, 2011 | Canon PIXMA MP210 InkJet Printer

1 Answer

I have a retail store with 7 x Win 7 Workstations. i have 1 x Epson Tm-T88iii thermal receipt printer connected and installed on lpt1 port on my 1 workstation. We use a Dos application for our sales. The...

Hi, details below for creating a ersistent connection from LPT1: to you \\computer\\printername printer. Do the following on the other workstation that is not printing.

Use the net.exe command to establish a persistent connection.

To do this, use the following syntax at a command prompt:

net use lpt1 \\printserver\sharename /persistent:yes

where printserver is the print server that is sharing the printer, and where sharename is the name of the printer share.

For example, to map LPT1 to a printer shared as Laser1 on a print server that is named Pserver, follow these steps:

1. Click Start, and then click Run.
2. In the Open box, type cmd, and then click OK.
3. Type net use lpt1 \\pserver\laser1 /persistent:yes, and then press ENTER.
4. To quit the command prompt, type exit, and then press ENTER.

Note In Windows XP, non-administrative users cannot map an LPT port to a network printer path when the LPT port exists on the computer as a physical parallel port.

Apr 12, 2011 | Epson TM-T88III Thermal Printer

2 Answers

Printing from 1989 DOS program "Labels Unlimited" with same

sound like a parallel connection.
Try this:
open a dos command prompt and type this command:

this would try to print through the dos mode if you connections is good it should print something.

Mar 26, 2009 | OKI MICROLINE 320 Turbo Matrix Printer

6 Answers

Not printing in foxpro 2.6 dos to hp laser jet 1020

You write "type the above line at command prompt". I dont't know Where exactly to write? Can you tell me!

Feb 05, 2009 | HP PSC 1610 All-In-One InkJet Printer

1 Answer

Posted by rhung33 on Jan 16, 2009 Under Window DOS prompt and Unix Sun Solaris 8 Station , using LPR -p command to print txt file to cause Lexmark T644 printer '' Flushing buffer '' and...

The printer can't handle the data it received and flush it out of its buffer. Goto Menu->Settings->Postscript Settings and turn "Print PostScript Erro" on. When the same print job prints, you should get a page printed out telling you what the printer doesn't like. You may also want to try forcing the printer into Postscript mode. Your PS file probably contains a PJL to set the device to PS mode before it prints. When the printer expects PCL data and received PS data(or vise versa), you can get this behaviour

Jan 16, 2009 | Lexmark T644 Laser Printer

2 Answers

Cannot print from DOS mode of shared printer

Make sure that your computed is on the same workgroup or domain as the other computers are.

You can check that by going into the control panel. Press system. Press the computer name tab. Change the domain name or workgroup accordingly.

Oct 31, 2008 | TallyGenicom 6312 Matrix Printer

2 Answers

Dos Program in FoxPro

To answer the question, I need to k**w if your DOS session is running inside Windows. As this is the most likely scenario, I'll answer assuming that - the answer will be different for DOS only systems.

Has the faulty LPT1 port has actually been removed? If it has, why **t just alter the port number of LPT3 back to LPT1 ? This can be done with jumpers on an old style card, or from device manager inside Windows if plug and play. If **t, you can try the following:

1: If the printer is already installed in Windows on LPT3, skip to step 3:
2: Install the printer in Windows. If you don't have a suitable driver for it, you can use Generic/Text only driver.
3: Right click on the printer, go to sharing, and make the printer shareable. Use a share name of 11 or less characters and ** spaces - e.g. EPSONLX500
4: From the CMD prompt, type the command:

net use lpt1: \\%computername%\Sharename


net use lpt1: \\%computername%\EPSONLX500

**te that you do **t need to replace %computername% with your exact computer name - the machine will do it for you.

Finally, for others reading this, you can also use this technique to print from DOS to most "intelligent" USB printers (Hi end Laser, Dot Matrix etc). It probably won't work with "dumb" GDI printers or All-in-ones where Windows has to do all the work. If the printer supports PCL or ESCP printing languages, you are probably going to be OK.

Mar 10, 2008 | Printers & Copiers

1 Answer

Can I print in Dos Programme with USB Printer

Assuming the printer can understand DOS coded printouts (which most should be able to), you can do it like this: Go to Control Panel | Printers | ML 2010 and share the printer. Then go to a command prompt Start | Run | type cmd Assuming that you share it with the share name "MYPRINTER" and the computer is called "MYCOMPUTER", then type NET USE LPT2: \\MYCOMPUTER\MYPRINTER /PERSISTENT:YES at a command prompt. Now you can print to LPT2: and the output will go to the USB-connected printer. To find your computer name, right click on the My Computer icon (either on your desktop or the start menu) and choose properties. The window that opens will have a Computer Name tab.

Mar 22, 2006 | Samsung ML 2010 Laser Printer

Not finding what you are looking for?
Printers & Copiers Logo

Related Topics:

996 people viewed this question

Ask a Question

Usually answered in minutes!

Top Printers & Copiers Experts


Level 3 Expert

94039 Answers

old marine
old marine

Level 3 Expert

1301 Answers

Donald DCruz
Donald DCruz

Level 3 Expert

17129 Answers

Are you a Printer and Copier Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides