See the top rated post in this thread. Click here

Results 1 to 2 of 2

Thread: Delete files older than XX days

  1. #1
    I could stop if I wanted to jpcadconsulting347236's Avatar
    Join Date
    2011-09
    Posts
    267
    Login to Give a bone
    0

    Default 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
    James Pertusi

    CAD Applications Consultant
    1 (646) 773 4834
    www.jpcadconsulting.com

  2. #2
    I could stop if I wanted to jpcadconsulting347236's Avatar
    Join Date
    2011-09
    Posts
    267
    Login to Give a bone
    1

    Default 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
    James Pertusi

    CAD Applications Consultant
    1 (646) 773 4834
    www.jpcadconsulting.com

Similar Threads

  1. Upgrade older versions of Revit files?
    By tkrich00 in forum Revit Architecture - General
    Replies: 8
    Last Post: 2010-06-21, 01:09 PM
  2. Trouble opening older Autocad files.
    By movielover40 in forum AutoCAD General
    Replies: 1
    Last Post: 2010-02-20, 03:04 AM
  3. Converting multiple DWG files to older version
    By drdesignz in forum AutoCAD General
    Replies: 6
    Last Post: 2009-03-04, 09:32 AM
  4. Windows XP - Autocad files opening in older version
    By CAD Brad in forum Operating Systems
    Replies: 6
    Last Post: 2008-08-01, 03:22 PM
  5. Converting older lisp files
    By IanR in forum AutoLISP
    Replies: 9
    Last Post: 2007-12-10, 02:18 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •