View Full Version : space in printer name
Ian
February 8th 05, 12:01 AM
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
Davide Guolo
February 8th 05, 12:49 AM
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
--------------------------------------------------------------
Yves Leclerc
February 8th 05, 05:26 PM
Or you can rename the printer so as to remove the space.
"Davide Guolo" > wrote in message
...
> 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
> --------------------------------------------------------------
>
>
>
vBulletin® v3.6.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.