Jump to content

Recommended Posts

Posted

Hello people i have problem with using server path in autolisp.

Everything work fine with normal path like "G:\Trudy-menu\ ...." but i cant use "\\46.48.10(random IP)\Network\Trudy-menu\.... if someone can help i will be glad.

 

I want to get files from the path and create folders if it need.

 

Thank you. :) 

Posted (edited)

\\  translates to \  in lisp so you might need "\\\\46.48.10(random IP)\...

 

 

https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/quotes-in-a-string/m-p/2450971/highlight/true#M275262

 

Quote

AutoLISP control characters
Code Description
\\  = \ character
\" = " character
\e = Escape character
\n = Newline character
\r = Return character
\t  = Tab character

 

Edited by mhupp
Posted

Example for a network printer

 

(COMMAND "-PLOT" "Y" "" "\\\\PROD\\your printer" "A3" 

  • Like 1
Posted (edited)

ooo another way.

 

 (strcat (chr 92) "46.48.10random IP\...")

Edited by mhupp
  • Like 2
Posted
16 hours ago, mhupp said:

ooo another way.

 

 (strcat (chr 92) "46.48.10random IP\...")

I use strcat chr for file paths in macros because if they worked when tested on the command line they would work in the macro!

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