CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products []
Cesky English Deutsch
 Visitors: 2846 

CAD tip CAD tip # 10206:

Question CAD 
 %  platform  category 
Q - question

How to batch-delete all OldVersion folders?

A - answer If you need to batch-delete Inventor backup files, i.e. all folders (directories) OldVersions from a given location, you can use the following simple batch file:

@ECHO off  
ECHO Remove OldVersions folders:  
for /d /r ".\" %%a in (OldVersions\) do if exist "%%a" (  
 echo %%a  
 rmdir /s /q "%%a"  

Copy this contents to a .bat file. Then run this BAT file in the requested folder - e.g. from a DOS window or by doubleclick. This batch removes all "OldVersions" folders in the current location and in all subfolders under it, including the folder contents.

100% *  CAD 
13.2.2015    3155x  
Comments   Tell a friend
applies to: Inventor ·

See also:
Tip 5996:How to suppress files in the OldVersions folders?
Tip 4838:Error loading segment PmBRepSegment in database.
Tip 2675:The Compact function doesn't make my files smaller.

Back   All CAD Tips All CAD tips&tricks

How to model a 3D thread in Inventor? « | » How to attach an .AdskLib material library in AutoCAD?

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   

Increase your productivity with our set of add-on functions for AutoCAD Civil 3D
CADstudio Civil Tools More info

Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.