CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products []
CZ | EN | DE
Login or
  Visitors: 4563

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    6859×  
Prices - CAD eShop:
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

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.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.