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
--------------------------------------------------------------
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top