CADWarrior Posted September 9, 2010 Posted September 9, 2010 Here is a lisp I created. (defun C:FD (/) (vl-load-com) (setq dwg (getvar 'dwgprefix)) (startapp "explorer" dwg) ) now lets say var dwgprefix is equal to "\\Server\Data\Client Files\B\Blah, blah blah\blah\And so on" When the function runs it seems to split it into ""\\Server\Data\Client Files\B\Blah," and "blah blah\blah\And so on" neither of which it can find because they dont exsist. Any help on this would be great its really starting to bug me:ouch: Quote
BlackBox Posted September 9, 2010 Posted September 9, 2010 This may be what you're looking for: startapp Starts a Windows application (startapp appcmd[file]) ... If an argument has embedded spaces, it must be surrounded by literal double quotes. For example, to edit the file my stuff.txt with Notepad, use the following syntax: Command: (startapp "notepad.exe" "\"my stuff.txt\"") 33 Quote
BlackBox Posted September 9, 2010 Posted September 9, 2010 For kicks... (defun C:FD () (if (= 1 (getvar 'dwgtitled)) (startapp "._explorer" (strcat "\"" (getvar 'dwgprefix) "\""))) (princ)) Quote
CADWarrior Posted September 9, 2010 Author Posted September 9, 2010 thanks for the help renderman Here is what i came up with and it finally works (defun C:FD () (startapp "explorer.exe" (strcat "\"" (getvar 'dwgprefix) "\"")) (princ)) Quote
KJB Posted September 9, 2010 Posted September 9, 2010 Here is the one I obtained from the internet a while ago. Not sure what the DOS switch /e is used for. ;; Boot EXPLORER (defun C:EXPL () (STARTAPP (strcat "EXPLORER /e," (getvar "dwgprefix"))) ) Quote
Lee Mac Posted September 9, 2010 Posted September 9, 2010 More in this post: http://www.cadtutor.net/forum/showthread.php?51787-Read-Only-File-Property&p=351116&viewfull=1#post351116 Quote
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.