Saturday, December 11, 2010

Interesting Way To Delete Empty Folders through Batch Files

Deleting different garbage with help of batch files is quite a common task. Quite interesting way of solving this problem I have found on http://www.ehow.com/how_6648535_search-delete-empty-folders.html. The author of this article plays with parameters of DIR command to retrieve the names of all empty folders on a certain logical drive and then saves them to text file. After that this file should be renamed with extension BAT or CMD, and each line should start with "rd " before the directory's name. It's really interesting and quite unusual, but still fast and effective way to clear empty folders through batch files.
You should just remember that some applications require empty folders to be run, and removing these folders can make these applications useless till their re-installation.

No comments:

Post a Comment

Translate