See the top rated post in this thread. Click here

Results 1 to 2 of 2

Thread: Automatically remove backup files from your library

  1. #1
    Member
    Join Date
    2010-06
    Posts
    17
    Login to Give a bone
    2

    Default Automatically remove backup files from your library

    I usually come across this when upgrading to a new Revit version. I find lots of backup files in my library due to modifying/improving my families, and I'm too lazy to delete them then and there.

    So I wrote this little script that does it for me. I copy it in root folder of my library and just start it once in a while. It deletes backup files in all sub directories and it deletes them even if they are read-only protected.
    Due to all our revit libraries being so precious I would never provide an executable file for you to click on and destroy your library by some malicious idiot's program.
    Here is the actual script that you paste into a notepad file and change the file extension to ".bat"


    del *.00??.rfa /S /F


    As you can see above, it is a delete function for all files ending with .00xx.rfa
    "xx" being any number while "00" being static. You can change this to be "xxxx" if you really want and get rid of the static "00".
    Due to that dot before 00xx, I am positive only revit backup files will be removed since no one has a file ending with a dot and 4 number characters. If you do, then this is not a solution for you.
    /S is to do with subfolders and /F deleting read-only files.

    Have fun, but I advise you to test it in a new folder so you can be sure before applying to library. I was a bit nervous myself but thorough testing has help me alleviate those fears.

    Regards,
    Milos
    Last edited by vajdici; 2014-04-29 at 08:20 AM. Reason: Spelling

  2. #2
    Member
    Join Date
    2013-04
    Location
    Portland, Oregon
    Posts
    36
    Login to Give a bone
    0

    Default Re: Automatically remove backup files from your library

    Ingenious!!!! thanks a heap!!!!

Similar Threads

  1. 2013: Backup files
    By fjtdogeno in forum Revit Architecture - General
    Replies: 0
    Last Post: 2012-10-22, 02:54 PM
  2. Backup files should go into a "Backup" folder
    By revit.wishlist1942 in forum Revit Architecture - Wish List
    Replies: 7
    Last Post: 2012-03-09, 06:06 PM
  3. Replies: 3
    Last Post: 2007-08-02, 05:52 PM
  4. Remove a Valve (IPart) from a custom Vault library
    By prowland in forum Vault - General
    Replies: 0
    Last Post: 2007-03-21, 06:35 AM
  5. Replies: 5
    Last Post: 2006-08-30, 06:53 PM

Tags for this Thread

Posting Permissions

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