Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problems with \

Status
Not open for further replies.

FacilitiesCAD

Chemical
Jun 25, 2003
46
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
 
Replies continue below

Recommended for you

Try using the other slash "/"
 
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.
 
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
 
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
 
I have just tried that with no avail. Anyone else run into this problem or does anyone know the asci number for "\"

Thanks,

Tim
 
I'm not sure about syntax in macros, but in lisp you need to "double quote" the path, as in "\"pathname\""
 
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).
 
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)
 
Thanks for the help,
I was able to reload the printer under a different name.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor