Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printing from DOS

Status
Not open for further replies.

gurner

Technical User
Feb 13, 2002
522
US
Imagine the situation, regardles of wether you are logged on to the 2k terminal server or on the local machine (XP Pro SP2)

On the Workstation

\\workstation1 (192.168.0.15)

it has 2 printers attached to it, a Label Printer (via USB) and Network Printer (192.168.0.19)

Both print perfect from the Windows GUI interface, in all applications when choosing File>Print

these are both (also) shared as

\\workstation1\HP4000 (192.168.0.19)
\\workstation1\LabelPrin

You run

'net use lpt2: \\workstation1\HP4000'
and
'net use lpt3: \\workstation1\LabelPrin'

And try

'copy c:\test.txt lpt2'
and
'copy c:\test.txt lpt3'
or
'print /D:lpt2 C:\test.txt'
and
'print /D:lpt3 C:\test.txt'

Only the first one (lpt2 - network printer) prints. We have tried switching it to a parallel cable and using LPT1 from the workstation.

and printing to the lpt1 port from the Windows GUI again works perfect, but from DOS with either commands it stops working again for the local label printer.

This is exactly the same if you logon to the terminal server. Both Session mapped printers (with identical drivers to the workstation) work perfect from Windows, but only the Label Printer doesn't from DOS

It is a standard Zebra LP2844 using WinPrint>RAW Processor, the account logged on is a Local Admin on both the Terminal Server and XP Pro box, has Full Control to both the C:\ drive on the TS and to the TS Spool Folder and System32 folder, it has full control to Print$ (on the workstation)

I check all these despite it being fine from Windows.

Any suggestions or experiances would be appreciated

Thanks

Gurner
 
I haven't attempted to print from DOS in a long time, but it could be the fact that your label printer doesn't support standard DOS printer emulation. In the good old DOS days all printers supported Epson, IBM Proprinter as standard command sets (which HP laser printer supports). Try to see if you can modify the label printer's print emulation settings and try again. Hope this helps
 
Cheers, i'll give that a go.

I really am not sure (yet) if the application uses DOS emulation, it seems to be calling 'lpt1' from an INI file. so have been testing from DOS and Windows.

Only Windows works so far, unless it is a network printer, and the DOS command works, which is probably due to the command sets you mention.



guess who was lumped with an application with no warning or prep time to get working :(

Gurner
 
try
printer/properties/share/additional drivers
and add dos driver from disk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top