Delete files older than XX days
Hi gang,
I have acad.lsp calling a BAT file with the following code in it:
Code:
forfiles -p "C:\_AutoCAD Autosaves" -s -m *.* /D -180 /C "cmd /c del @path"
It deletes any file older than 180 days in the folder "C:\_AutoCAD Autosaves" when AutoCAD is launched.
Is there any way to achieve this within acad.lsp (so I don't have to call the bat file)?
Thanks for any guidance!
-JP
Re: Delete files older than XX days
Ah... found it in another thread. Many thanks to userr jsowinski!!!
http://forums.augi.com/archive/index.php/t-106601.html