Home > Enterprise Desktop Tips > > Freeware tool purges empty directories
Enterprise Desktop Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 


Freeware tool purges empty directories


Serdar Yegulalp, Contributor
08.01.2005
Rating: -3.00- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


Please let us know how useful you find this tip by rating it below. Do you have a useful Windows tip, timesaver or workaround to share? Submit it to our monthly tip contest and you could win a prize!


Here's a familiar scenario: After doing extensive cleanup on a \Documents and Settings or \Applications directory, you're left with many empty folders but no way to selectively delete them. The command-line functions for removing directories are all or nothing; there's no way to selectively instruct them to remove only empty ones.

A programmer named Douglas Good became fed up with dealing with this problem, so he came up with a solution: RMEMPTY, a freeware tool for purging empty directories from any folder hierarchy.

RMEMPTY runs as a command-line application. The only parameter that needs to be passed is the name of a directory or pathname, which RMEMPTY will inspect recursively for empty folders. Originally, the program didn't delete the specified directory itself if it was empty after all other processing was completed; it now does this.

To purge multiple folder hierarchies, simply pass multiple pathnames as parameters. For example, rmempty c:\folder1 c:\folder2. The files are never deleted, just the empty folders.

RMEMPTY has one drawback, although I suspect it will be fixed in future revisions: It does not delete empty directories with names that contain Unicode or non-ASCII characters. The source code is also not available, unfortunately, but Mr. Good can be reached at dgood@psea.org if you want to drop suggestions about improvements.

Note: I've found that one useful but rather non-work-related application for this tool is cleaning up all the empty directories left behind in a My Music directory after consolidating and renaming many files. This was actually how I found out about the non-English pathname limitation!


Serdar Yegulalp is editor of the Windows Power Users Newsletter. Check it out for the latest advice and musings on the world of Windows network administrators -- and please share your thoughts as well!


Rate this Tip
To rate tips, you must be a member of SearchEnterpriseDesktop.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Windows XP management
Windows operating system management for the IT pro
Managing single sign-on security burdens in Windows
Why Windows Vista is superior to XP
Creating the Secure Managed Desktop
Managing Windows folders with Redirected Folders
Managing folders inside the Windows documents folder
Identity and Access Management Security School
Introducing your new enterprise desktop management resource
Regaining lost functionality in the Windows XP Recovery Console
Recover from configuration changes to Windows XP

Windows legacy operating system management
Windows 2000 batch file command reference
Using CMD.exe and Command.com
Microsoft's Allchin to retire in 2006
Transplant user profile folders during upgrades
Use 'Clonepr' to move users between AD forests
Establishing a TCP/IP connection between a Win2k app and a mainframe app
Change a local admin password with Local Security Utility.exe
Windows Server 2003 management tools: Remote Desktop for Administration
Boost performance: change Group Policy refresh interval
Process Explorer: Freeware outshines Task Manager

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
XP key changer  (SearchEnterpriseDesktop.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Enterprise Desktop Security - Virus Protection, Malware Protection, Intrusion Detection
HomeTopicsITKnowledge ExchangeTipsMultimediaWhite PapersBlogs
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2008 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts