startapp space in path

startapp space in path

dolftromp
Explorer Explorer
979 Views
2 Replies
Message 1 of 3

startapp space in path

dolftromp
Explorer
Explorer

Hello,

 

I use a lisp with startapp to open a textfile. This was working with Autocad 2015 without any problems, but now in 2018 it somehow has a problem with a space in the path to the file. If I could move the file I would already have done this, but its made by another lisp in the support folder of autocad.

 

(startapp "C:\\Program Files\\Notepad++\\notepad++.exe" "C:\\Users\\USERNAME\\AppData\\Roaming\\Autodesk\\AutoCAD 2018\\R22.0\\enu\\Support\\LMAC_BFind_SavedSearches_V2-0.txt")

I think there is a problem with the space in "\\Autocad 2018\\".

The weird thing is that in autocad 2015 I never had any problems with it.

 

Is there a way to still open this file?

 

0 Likes
Accepted solutions (1)
980 Views
2 Replies
Replies (2)
Message 2 of 3

CodeDing
Advisor
Advisor
Accepted solution

@dolftromp ,

 

Checking the Documentation, it should be surrounded by literal quotes, like this:

(startapp "C:\\Program Files\\Notepad++\\notepad++.exe" "\"C:\\Users\\USERNAME\\AppData\\Roaming\\Autodesk\\AutoCAD 2018\\R22.0\\enu\\Support\\LMAC_BFind_SavedSearches_V2-0.txt\"")

Best,

~DD

0 Likes
Message 3 of 3

dolftromp
Explorer
Explorer

@CodeDing ,

This works.

Thank you very much!

0 Likes