Author Topic: deleting files via lisp  (Read 5906 times)

0 Members and 1 Guest are viewing this topic.

daron

  • Guest
deleting files via lisp
« Reply #15 on: November 19, 2003, 12:50:41 PM »
Yup! I totally forgot. That's funny. You want to post that in Lagniappe under the heading of "By-laws of The Swamp"?

Mark

  • Custom Title
  • Seagull
  • Posts: 28685
deleting files via lisp
« Reply #16 on: November 19, 2003, 12:51:48 PM »
Quote from: Daron
Yup! I totally forgot. That's funny. You want to post that in Lagniappe under the heading of "By-laws of The Swamp"?

Oh hell yea! maybe I'll remember next time.  :shock:
TheSwamp.org  (serving the CAD community since 2003)

Columbia

  • Guest
deleting files via lisp
« Reply #17 on: November 19, 2003, 12:58:43 PM »
About the multiple select:

One thing to be aware of is what the action_tile $value returns.  On multiple_select=false; conditions the list_box will return a value of the quoted index (i.e. "0" or "3").  But when multiple_select=true; the returned value will be a single string that indicates which index's are selected delimited by a single space (i.e. "1 2 4 7").

CADaver

  • Guest
deleting files via lisp
« Reply #18 on: November 19, 2003, 05:21:24 PM »
I know this is the VLISP hackers forum, and everything goes better with lisp, but....

You can accomplish nearly the same thing with the OPEN dialog box.  Just hightlight the files you want to trash and hit DEL.

SMadsen

  • Guest
deleting files via lisp
« Reply #19 on: November 19, 2003, 05:30:42 PM »
Maybe it should be accomplished automatically? :)

As a last resort you can always shell out through AutoCAD and do it:

(command "SHELL" "Del C:\\hello.lsp")

or

(command "DEL" "C:\\hello.lsp")  <-- also check out the pgp file for DOS commands