Message 1 of 5
Delete files older that 'X' days in specific folder
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi folks. I had some LISP in acad.doc that would delete all files in "C:\_AutoSave" that are older than 180 days on launch of AutoCAD.
It used to work -- I think. Here is the code. It just reports 'nil' and does nothing.
Any light you can shine on this for me is greatly appreciated.
(foreach file
(mapcar (function (lambda (x) (strcat "C:/_AutoSave/" x)))
(vl-directory-files "C:/_AutoSave/" "*.*" 1)
)
(if (not (vl-file-systime file))
(prompt (strcat "\n** No systime for \"" file "\" ** "))
)
)