Trudy Posted June 23, 2022 Share Posted June 23, 2022 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. Quote Link to comment Share on other sites More sharing options...
mhupp Posted June 23, 2022 Share Posted June 23, 2022 (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 June 23, 2022 by mhupp Quote Link to comment Share on other sites More sharing options...
BIGAL Posted June 23, 2022 Share Posted June 23, 2022 Example for a network printer (COMMAND "-PLOT" "Y" "" "\\\\PROD\\your printer" "A3" 1 Quote Link to comment Share on other sites More sharing options...
mhupp Posted June 23, 2022 Share Posted June 23, 2022 (edited) ooo another way. (strcat (chr 92) "46.48.10random IP\...") Edited June 23, 2022 by mhupp 2 Quote Link to comment Share on other sites More sharing options...
tombu Posted June 24, 2022 Share Posted June 24, 2022 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! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.