Management

A Very Cool Utility (CAD Manager's Toolbox)

23 Jul, 2008 By: Robert Green

One simple DOS program can automate the cleanup of network servers.


In the last edition of the CAD Manager's Toolbox, I talked about periodic deletion of files from network servers to prevent clutter and keep things nice and clean. I received several reader responses asking for ways to make more powerful cleaning routines, so in this edition I'll show you a cool little DOS utility that I use to automate the process.

I've been using a utility called SWEEP.EXE for a while now with great results. SWEEP.EXE allows you to process DOS commands throughout entire directory structures, thus making it great for cleaning servers using batch files.

Now I know that not everyone knows DOS these days, but the venerable old system can still do some things very well. Let me illustrate how the process might work:

Step 1. Download SWEEP v1.62 from my Web site at http://www.cad-manager.com/tools and extract its files.

Step 2. Place the SWEEP.EXE file in your Windows\System32 path like this:

figure
Placing the utility in your SYSTEM32 folder assures that SWEEP.EXE can always be found by the system.

Step 3. Verify operation of SWEEP.EXE by typing SWEEP at a DOS prompt like this:

Click for larger image
Invoking SWEEP at the Command line shows all the supported options. (Click image for a larger version)

Step 4. Read through the command prompt options and issue a command. Let's say you wanted to delete all BAK files, MP3 files, and TMP files from the network drive called R:

The DOS command lines would look like this:

R:
SWEEP -ir del *.bak;del *.mp3;del *.tmp

Where the R: command switches the current drive to R and the SWEEP syntax executes all three delete commands through the entire directory structure of the R drive.

You can do a lot more with SWEEP.EXE as you read through the options, but just using it in the way I've described makes it a very useful utility. This tool is offered free from Robert Briggs, but contributions for this great file management tool are gladly accepted by the author and instructions for doing so can be found in the documentation that comes with the utility.

Do you have a suggestion/tip that should be in the CAD Manager's Toolbox? Send it to me at rgreen@cad-manager.com, and you might get a cool Cadalyst souvenir if I use your idea.


About the Author: Robert Green

Robert Green

AutoCAD Tips!

Lynn Allen

Autodesk Technical Evangelist Lynn Allen guides you through a different AutoCAD feature in every edition of her popular "Circles and Lines" tutorial series. For even more AutoCAD how-to, check out Lynn's quick tips in the Cadalyst Video Gallery. Subscribe to Cadalyst's Tips & Tricks Tuesdays free e-newsletter and we'll notify you every time a new video tip is available. All exclusively from Cadalyst!
Follow Lynn on Twitter Follow Lynn on Twitter


Latest News from Cadalyst Partners
Feed
AutoCAD 2013 Service Packs   17 May, 2013

Service Pack 2 for 2013 full AutoCAD and the LT version have been released. The links are below: AutoCAD 2013 SP2:...More>>Read more Without a Net blog posts>>

Feed
Teaching Old Designs New Tricks   17 May, 2013

Question: What do the QWERTY keyboard, the railroad, and shoelaces have in common? Answer: Their inventors are long gone. The QWERTY keyboard was...More>>Read more PTC Creo blog posts>>

Feed
Ideate - Ideate BIMLink for Revit 2014 now available   17 May, 2013

An update for my favorite Revit tool and most favorite Autodesk reseller. I miss you Bob! ...More>>Read more BIMbuilder blog posts>>

Feed
Discover and Fix Your Vibration Vulnerability with SolidWorks Simulation   17 May, 2013

When I go biking during the summer, I rely on the frame of my bicycle to withstand stresses such as vibration and impact. As I speed down the trail,...More>>Read more SolidWorks Blog posts>>

Feed
Behind the Design: How Words and Sketches Become a Picture Book   18 May, 2013

I bet, next to those dusty engineering and design textbooks on the shelf, you have a few picture books that have led to endless inspiration since you...More>>Read more SolidSmack blog posts>>

Poll
What type of input device (besides the keyboard) do you use at your primary CAD workstation?
Standard mouse
Trackball mouse
Programmable mouse
3D navigation device
Pen/tablet
Multiple devices
Submit Vote




Considering Wide Format Printing Solutions?
Four FREE White Papers Available:






Subscribe Cadalyst Newsletters