Let’s say you have exported all families in a Revit project to a bunch of folders by Category, but you want to get them all into one folder so you can drag-drop and load them all into a new project all at once…
Copy the following into a batch file:
::Not sure if this is needed
::It guarantees you have a canonical path (standard form)
for %%F in (%destination%) do set destination=”%%~fF”
for /r %source% %%F in (.) do if “%%~fF” neq %destination% ROBOCOPY “%%F” %destination% *.rfa /COPYALL /R:0
Now, change the text in red to suit your source and destination (my destination folder was empty). Run the batch file and you should have a stack of RFAs all sitting in that folder. Note: results may be a bit unpredictable if you have duplicates of particular files in the source directory tree.
file – ROBOCOPY – Copy folders content to a single folder – Stack Overflow
Dante van Wettum from The Netherlands has posted a brilliant little Journal File cleanup script at this link. What I like about it is that the paths are all automatically set – all you need to do is change the USERNAME and Revit_Map to suit your installation.
… put in the parameter USERNAME (so you replace the d.van.wettum) with the correct name for your path, and change the part “Autodesk Revit Structure 2012” depending on your revit version (Structure/MEP/Architecture)
Example file can be downloaded Here
DELETED FILES WILL NOT GO TO TRASH BIN. GONE = GONE
Save the code as a .bat file. If you run it, it will clean your journal folder.
Once the file is saved as .bat, it can be set to auto-run, either at startup or as a Windows Task. Personally, I would prefer to manually run this. There are things in the journal folder that can help you rescue from a bad no save / crash scenario.
Read more at
1869* Web – News� � �Revit 2012 Journal files
EDIT: There is an error in the path below, please use the download link above only…it is correct.