ILoveMadoka Posted December 29, 2010 Posted December 29, 2010 (edited) 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 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!! Edited December 29, 2010 by ILoveMadoka rev Quote
Cat Posted January 2, 2011 Posted January 2, 2011 This is a script I wrote to plot 11 x 17 for the network printer we use. The server info is setup with the printer so there was no need to specify the server. -PLOT YES YOUR PRINTER NAME HERE 11" x 17" INCHES LANDSCAPE NO EXTENTS FIT CENTER YES Monochrome.ctb YES NO NO YES QUIT YES Quote
ILoveMadoka Posted January 3, 2011 Author Posted January 3, 2011 That works fine if your printer name doesn't have spaces or backslashes. As soon as my script gets to a space or backslash it crashes... Still need help! Quote
Cat Posted January 4, 2011 Posted January 4, 2011 Sorry, I've used Printer names that contained spaces without any issues and as far as the server names are concerned, ours are set up with the printer so we don't have to specify the server in our scripts. Good Luck. Quote
ILoveMadoka Posted January 4, 2011 Author Posted January 4, 2011 Ok... I'm 'tupid! Found my problem was that a specific tab name was being referenced but the screen dump showed the printer name for some reason. Thanks guys!! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.