I have the commonly used lisp code to open Windows Explorer to the current drawing's directory. However, I can't for the life of me get the right syntax for opening to a specific directory - and one that has spaces in the path. I can get the following code to run when I paste it into the command line but when I run it from a menu, it won't reproduce the path. (startapp "explorer" "\"C:\\Documents and Settings\\All Users\\Documents\\PDF Files\\Autosave\"") When it runs from the menu all I get on the command line is: (startapp "explorer" " Any ideas?
For Menus, use the "/" rather than the "\"..e.g. (startapp "explorer" "C:/Documents and Settings/All Users/Documents/PDF Files/Autosave/") On Menus, the \ means pause.. Bob
(startapp "explorer \"C:\\Documents and Settings\\All Users\\Documents\\PDF Files\\Autosave\"") -- R. Robert Bell I have the commonly used lisp code to open Windows Explorer to the current drawing's directory. However, I can't for the life of me get the right syntax for opening to a specific directory - and one that has spaces in the path. I can get the following code to run when I paste it into the command line but when I run it from a menu, it won't reproduce the path. (startapp "explorer" "\"C:\\Documents and Settings\\All Users\\Documents\\PDF Files\\Autosave\"") When it runs from the menu all I get on the command line is: (startapp "explorer" " Any ideas?
That code does work within a lisp routine that is called from a menu (which is the way I eventually went). It does not work within a menu because, as was pointed out earlier, the \ is interpreted as a pause. Changing the \ to a / has the menu system interpret the path correctly but the startapp command doesn't like it for some reason - Windows gives me an error saying that there is no such path. Thanks for the help.