See the top rated post in this thread. Click here

Results 1 to 2 of 2

Thread: Delete files older than XX days

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    I could stop if I wanted to
    Join Date
    2011-09
    Posts
    308
    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

  2. #2
    I could stop if I wanted to
    Join Date
    2011-09
    Posts
    308
    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

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 pstern44080 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
  •