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 cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

dos question (name with blanks inside)

Status
Not open for further replies.

ki

Computer
Joined
Sep 6, 2002
Messages
4
Location
IT
Hi! This is a dos command that i use in my c program

C:\>net use \\wanda\ntlps lpt3:

where "wanda" is the server name and "ntpls" is the network printer.

This statement works fine but for a network printer which has some blanks in the name how do i write?

Ex: C:\>net use \\wanda\hp laserJet 6 lpt3:

(i tried also with C:\>net use "\\wanda\hp laserJet 6 lpt3:" but it dosn't work).

Thanks.

Chiara
 
Did you try C:\>net use "\\wanda\hp laserJet 6" lpt3: ?
 
Try "\\wanda\hp laserJet 6" lpt3:
 
Have you tried writing ALT+0160 instead of spaces?
 
This is a special program for support printing from DOS applications on any kinds of printers include winprinters, USB-printers, network printers etc.

Also DOSPRN support Epson and HPPCL Esc-sequences emulation, landscape/portrait printing, text color manipulation, absolute positioning and many other features

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top