headerL
headerR
Left effects
Right effects
Site Email Subscription Notice
As a registered user at Revitinfo, you automatically are signed up to recieve emails any time a new post or reply to existing post is made. You can change this setting while logged in uder your User Profile by clicking on your user name at the top right of any page, next to the Date. Once you get here, click on the "Edit Profile" button below your Quick Profile Information. Finally, select "Manage Profile to change your profile Settings.
Thank you for visiting Revitinfo.com
TopL TopM TopR
MiddleL
1/19/2010 8:31:45 AM
 
superJMuser
235 Posts
Joined 08/19/2009
www.revitinfo.com
Entry Type:
Tutorial-How To
Category:
General
Subcategory:
General

Site Related Promos:

CADclips.com

Get 10% off Revit Video Tutorials using "RevitInfo" Coupon Code

Repost: Automated Archiving of Incremented Revit Files (Source Link)  

Original Post at "Building Informed Models" blog.  Use the Trackback link above.

This is a great little tidbit of information that will allow you to automatically archive files in a folder to a different location.

Note: use this automation at your own risk, and please test this in a practice folder first!

Revit creates incrementally numbered backups each time you save old families or projects (non workshared). This is great, but they accumulate in whichever folder they're saved within. Here's some scripting which relocates these "backup" files to an archived location, in this case "C:\Archive". Simply, copy the text below into notepad and save as "Move and Archive.bat", then place into the folder you are saving files into and run it periodically or as incrementally as an assigned task.

@echo off
cls
Set src=%~dp0
 
Set Families=C:\Archives
If Not Exist "%Families%" MD "%Families%"
 
Set Projects=C:\Archives
If Not Exist "%Projects%" MD "%Projects%"
 
Move /Y "*.00**.rfa" "%Families%\"
Move /Y "*.00**.rte" "%Families%\"
Move /Y "*.00**.rvt" "%Projects%\"
Move /Y "*(Recovery).rfa" "%Families%\"
Move /Y "*(Recovery).rvt" "%Projects%\"

____________________
No records found

Copyright Notice:  Autodesk: Revit is a product that is wholly owned by Autodesk. Any reference to Revit, Revit Architecture, Revit MEP or Revit Structure on this site is made acknowledging this ownership. Refer to Autodesk's own web site and product pages for specific trademark and copyright information. Autodesk represents a great many products and every attempt will be made to respect their ownership whenever one of these other products is mentioned on this site.

Now, even unregistered visitors can subscribe to recieve emails from the forum.
Simply fill out this form to begin receiving email updates!
 
You might also like...

MiddleR
BottomL BottomM BottomR