space in printer name

  • Thread starter Thread starter Ian
  • Start date Start date
I

Ian

Hi,

I am trying to capture a printer port in windows xp. I am using the
command
NET USE LPT1: \\SERVER\EPSON COLOUR /PERSISTENT:YES
However, it doesn't like the space in the printer name, does anyone
know how to alter this command so that it can handle the space?

thanks in advance,
Ian
 
Ian,
NET USE LPT1: \\SERVER\EPSON COLOUR /PERSISTENT:YES

simply "quote" it.

NET USE LPT1: "\\SERVER\EPSON COLOUR" /PERSISTENT:YES

Kind regards,
Davide Guolo
--------------------------------------------------------------
Printfil - Windows Printing System for Applications
http://www.guolo.com/printfil
Odbc4All - Connection to ODBC Data Sources for any Application
http://www.guolo.com/odbc4all
--------------------------------------------------------------
 
Back
Top