Jump to content

Recommended Posts

Posted (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 by ILoveMadoka
rev
Posted

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

Posted

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!

Posted

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.

Posted

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

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...