-
network printer again
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
-
C:\>net use "\\wanda\ntlps" lpt3:
-
:-( it doesn't work for name with blanks inside
-
You should just need quotes round the device name, not the entire command line :-/
Try single quotes.
-
net use "\\wanda\hp laserJet 6" lpt3:
This should work
-
Or use the DOS name:
net use \\wanda\hplase~1 lpt3:
Not sure if that works on 2k though
-
For parksie:
yes, i tried C:\>net use "\\wanda\hp laserJet 6" lpt3:
and it doesn't work.
it's been my error on typing the first message, sorry.
For cornedBee:
Now i'm gonna try your suggestion.
Thank you both.
Chiara
-
ok, it's simply this:
net use \\wanda\hplaserjet6 lpt3:
:-)