Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations GregLocock 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
Sep 6, 2002
4
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
 
Replies continue below

Recommended for you

Did you try C:\>net use "\\wanda\hp laserJet 6" lpt3: ?
 
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