Results 1 to 2 of 2

Thread: How to remove windows empty subdirectories

  1. #1
    Join Date
    Dec 2004
    Posts
    420

    How to remove windows empty subdirectories

    You might have empty folders and subfolders in your Windows system that will not affect the space, per say, although it is true that it can slow down your computer a bit. With the trick, which is explained below, we will be able to remove these directories quickly and easily (even before you do this you must keep in mind that many applications work with empty folders and if we remove these, then some programs may not work).

    We just need to create a script and run it when you want to remove empty subdirectories that are in your Windows.

    These are the steps:
    1. Open Notepad, and enter the following:
      • Code:
        for /f "usebackq" %%d in ("dir /ad/b/s | sort /R") do rd "%%d"
    2. Once, you have copied the code in the notepad, which is mentioned above, simply save the notepad with a .bat extension or file format.
    3. This way, the script is saved and now you just have to click to run it, and then it will automatically delete the empty subdirectories.

  2. #2
    Join Date
    Apr 2008
    Posts
    586

    Re: How to remove windows empty subdirectories

    There is also a software called Empty Folder Nuker that can find and delete all empty folders from a base folder of your choice. One advantage of this program is that it requires no installation, just double click on it and select from any drive whether it is My Documents, Desktop, etc, and just start searching. In moments it will show all the empty folders, and thus anyone can eliminate those with just one click. Empty Folder Nuker allows us to integrate it into Windows, so you just have to right click on any directory and it will search for empty folder with ease.

Similar Threads

  1. Replies: 4
    Last Post: 25-01-2012, 12:05 PM
  2. Counting all files in a directory (and subdirectories)
    By Sarasija in forum Operating Systems
    Replies: 4
    Last Post: 22-08-2010, 01:03 AM
  3. cannot remove folder the directory is not empty
    By dazzareds in forum Windows Software
    Replies: 1
    Last Post: 12-10-2009, 09:35 PM
  4. How to use chmod to access all subdirectories
    By CitricAcid in forum Operating Systems
    Replies: 3
    Last Post: 29-06-2009, 11:14 PM
  5. Replies: 3
    Last Post: 29-06-2009, 06:58 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,631,082.05148 seconds with 17 queries