How to delete a file via LISP

How do I delete a file on a disc from AutoLISP in BricsCad?In AutoCAD there is the vl-file-delete function, but that is not a part of the BricsCad.Svend

Comments

  • You could try "shell" as in (command "shell" "dir"). Not sure if that (substituting "del...or whatever dos command) would do what you want, but it works and is not listed in the help.

  • Thanks for the tip.The syntax is:(command "shell" (strcat "del " path filename))Note the space after "del It works. BricsCad makes a bat file for the Shell command$$IntelliCAD_Shell$$.batwhere the command is listed.Svend

  • Is that a temporary file? My system has no batch file associated with Icad at all.

  • Yes it is a temporary file. It is delted when exiting BricsCad.

This discussion has been closed.