it would be quicker to do this from windows explorer, rather than a version of autocad



Registered forum members do not see this ad.
AutoCAD 2000 or above.
Is there a lisp command/routine to delete a file from my "C" drive
Say I would like to delete "test.txt" from the root directory
of my "C" drive.
Thank you,
it would be quicker to do this from windows explorer, rather than a version of autocad
Posting no more
...................................................


Code:(defun delfile (file) (vl-load-com) (if (vl-file-systime file) (vl-file-delete file) (alert (strcat "Can'nt delete " file "\nMaybe deleted or open")) ) ) (defun C:DELFILE ()(delfile "C:\\test.txt"))
Registered forum members do not see this ad.
"That's it. It's one thing for a ghost to terrorize my children, but quite another for him to play my Theremin." Homer Simpson
Dave
Bookmarks