×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Problems with \

Problems with \

Problems with \

(OP)
I have made a tolbar button to print a specific way that I want.  I am now trying to set it up for a different printer and unfortunately the printername is something like this:
\\abcd\name
When I put this in the \ causes it to pause for a user input.  Is there any way around this.  I am unable to rename the printer.

Thanks,
Tim

RE: Problems with \

Try using the other slash "/"

RE: Problems with \

Are you printing over a network?  If so, you probably have to set up a virtual port in order to do this.

I have similar buttons set up with AutoCAD, and I plot to at least 5 different plotters, as well as files.

RE: Problems with \

(OP)
Yes, I'm printing over the network, and I have tried,"/","\"and"\\" plus "^\" and "&\"

I am currently able to print to that printer.  My only problem is putting it in a macro because it treats a "\" as a request for user input.

Thanks for the ideas, any more would be apreciated.

Tim

RE: Problems with \

after reading your reply. did you try "//"?

Intel P4 1.7 GHZ
768 RDRAM
Win 2000 Pro
Autocad 14, 2002 with EP 2.3.1

RE: Problems with \

(OP)
I have just tried that with no avail.  Anyone else run into this problem or does anyone know the asci number for "\"

Thanks,

Tim

RE: Problems with \

I'm not sure about syntax in macros, but in lisp you need to "double quote" the path, as in "\"pathname\""

RE: Problems with \

ASCII decimal number for \ is 92

RE: Problems with \

Try to share the printer as another name.  Use the name you give the printer in the macro, then you shouldn't have to use and \\ or \.

Use "net use" from the command prompt to create a virtual port, something like this:

net use lpt1 \\computer\printer1 /persistent:yes

Where lpt1 is the sharename and printer1 is the node name of the printer you'd like to use (computer is the node name of your computer).

The /persistent:yes portion just tells you machine to remember the connection at boot.

Then use lpt1 in the macro, this should do it (you don't have to use lpt1, use any name you desire).

RE: Problems with \

I have used the double backslash to represent a single backslash in my Lisp routines, try that.

Example: (command "INSERT" "M:\\Approvals\\Border 11x17 Horizontal.dwg" P1 S S 0)

RE: Problems with \

(OP)
Thanks for the help,
I was able to reload the printer under a different name.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources