TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: ELOQUINTET on June 20, 2007, 10:07:16 AM
-
Hey guys I have this little lisp routine that would open explorer to the current folder but it has recently stopped working.
(defun C:DIRR ()(COMMAND ".BROWSER" (GETVAR "DWGPREFIX")))
I get the message:
createprocess:file not found
internet browser not found
I know it is probably due to the fact that I recently upgraded my internet explorer to 7 but how can I fix this?
-
See if this one works:
(defun c:dirr (/)
(startapp "explorer" (strcat "/e," (getvar 'dwgprefix)))
)
-
ah yes thank you so much ron. you never realize how much you miss something until it's gone. gracias
-
Now that's cool! I use the keyboard shortcut [Windows_Key + E], which just brings up Explorer. Now I need to add your idea to my shortcut commands.
Muchas Gracias. Eres Rey!
-
I use a slightly different version which will automatically highlight the drawing in the Windows Explorer folder.
(defun C:WinExplorer ( / )
(STARTAPP (strcat "EXPLORER /select, " (getvar "dwgprefix") (getvar "dwgname")", /e"))
(princ)
)
-
I like it :)
-
Hi
For the fun with Activex
(defun explore(dir / sh)
(vlax-invoke-method (setq sh (vlax-create-object "Shell.Application")) 'explore dir)
(vlax-release-object sh)
)
(explore "c:\\windows")
@+