Jump to content

Using server path in Autolisp


Trudy
 Share

Recommended Posts

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

Link to comment
Share on other sites

\\  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
Link to comment
Share on other sites

ooo another way.

 

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

Edited by mhupp
  • Like 2
Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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

 Share

×
×
  • Create New...