Jump to content

Recommended Posts

Posted

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:

Posted

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

Posted

For kicks...

 

(defun C:FD ()
 (if (= 1 (getvar 'dwgtitled))
   (startapp "._explorer" (strcat  "\"" (getvar 'dwgprefix) "\"")))
 (princ))

Posted

thanks for the help renderman

 

Here is what i came up with and it finally works :lol:

 

(defun C:FD ()
   (startapp "explorer.exe" (strcat  "\"" (getvar 'dwgprefix) "\""))
 (princ))

Posted

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")))

)

Posted

More in this post:

http://www.cadtutor.net/forum/showthread.php?51787-Read-Only-File-Property&p=351116&viewfull=1#post351116

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...