ILoveMadoka
29th Dec 2010, 03:53 pm
I have three network printers that I print to for various reasons.
I want to write a script that goes through the printer setup
for each printer but when it gets to the printer name it always bombs out
because the printer name has spaces in it.
Some of the printer paths have standard network names too including backslashes
ie: \\Server1\HP (file://\\Server1\HP) 5000
Changing the printer name is not an option. :(
Even the paper size has spaces "11 x 17" so that is also a problem.
I use Tabloid if it is an option but one printer there is only 11 x 17!
Can someone please tell me how to use text in a script if there are spaces?
Thanks!!
I want to write a script that goes through the printer setup
for each printer but when it gets to the printer name it always bombs out
because the printer name has spaces in it.
Some of the printer paths have standard network names too including backslashes
ie: \\Server1\HP (file://\\Server1\HP) 5000
Changing the printer name is not an option. :(
Even the paper size has spaces "11 x 17" so that is also a problem.
I use Tabloid if it is an option but one printer there is only 11 x 17!
Can someone please tell me how to use text in a script if there are spaces?
Thanks!!