1.    31 Jul 2008 #1
    Join Date : May 2008
    Posts : 88
    Vista Home Premium 32bit
    Local Time: 11:15
    italy

    remove all empty folders


    I have another problem from a lot of days.
    Makings an experiment I made a mistake and I've created a lot of empty folders (several thousands). I'd like to know how I can delete them if they don't contain files.
    Thanks.
      My System SpecsSystem Spec

  2.    31 Jul 2008 #2
    Join Date : Jun 2008
    Charleston SC
    Posts : 445
    Vista Ultimate 32/64 bit
    Local Time: 12:15
    usa us south carolina

     

    Re: remove all empty folders


    I've not tried this software, but you could give it a shot to see if it does what you want... RED ~ jonasjohn.de: remove empty directories (freeware for windows)
      My System SpecsSystem Spec

  3.    31 Jul 2008 #3
    Join Date : May 2008
    Posts : 88
    Vista Home Premium 32bit
    Local Time: 11:15
    italy

      Thread Starter

    Re: remove all empty folders


    Wow. It's solved my problem. Great sw. Thank you very much.
    However if someone can give me a solution with powershell it would be appreciate.
      My System SpecsSystem Spec

  4.    31 Jul 2008 #4
    Join Date : Jun 2008
    Charleston SC
    Posts : 445
    Vista Ultimate 32/64 bit
    Local Time: 12:15
    usa us south carolina

     

    Re: remove all empty folders


    Glad it worked for you.
      My System SpecsSystem Spec

  5.    31 Jul 2008 #5
    /\/\o\/\/ [MVP] Guest

    Re: remove all empty folders


    for a powershell solution see:

    http://www.microsoft.com/technet/scr...pstip0530.mspx

    Greetings /\/\o\/\/
    http://thePowerShellGuy.com

    "sardinian_guy" wrote:

    >
    > Wow. It's solved my problem. Great sw. Thank you very much.
    > However if someone can give me a solution with powershell it would be
    > appreciate.
    >
    >
    > --
    > sardinian_guy
    >
      My System SpecsSystem Spec

  6.    31 Jul 2008 #6
    Join Date : May 2008
    Posts : 88
    Vista Home Premium 32bit
    Local Time: 11:15
    italy

      Thread Starter

    Re: remove all empty folders


    I was sure that it was possible to solve with powershell.
    Thank you very much and I give you my compliments for your great knowledge. I found your solutions everywhere in the web.
      My System SpecsSystem Spec

  7.    31 Jul 2008 #7
    Kiron Guest

    Re: remove all empty folders


    # remove empty folders
    ls <path> -r -fo | ? {$_.psIsContainer} |
    sort fullName -des | ? {!(ls $_.fullName -fo)} | ri

    Check out this thread to see why it's better to sort them in descending order
    http://groups.google.com/group/micro...41347ebae682fb

    --
    Kiron
      My System SpecsSystem Spec

  8.    01 Aug 2008 #8
    Join Date : May 2008
    Posts : 88
    Vista Home Premium 32bit
    Local Time: 11:15
    italy

      Thread Starter

    Re: remove all empty folders


    Thanks again, even for the link!
      My System SpecsSystem Spec


Similar Threads
Thread Forum
Remove empty folders
Looking for some help. I am scripting the move of files with a last access time older than 30 days and I would like to remove the folder that...
PowerShell
How to remove empty Vol. mixer bars?
same situation as in the picture: why is it & how to remove it? http://upload.wikimedia.org/wikipedia/en/4/4e/Volume_Mixer_Vista.png
Sound & Audio
Remove empty folders in C:\Windows\Temp ??
My Vista 32 Ult C:\Windows\Temp folder has approx 700 (yes 700) empty folders all starting with MCE followed by numbers and letters eg MCE0000d...
Vista General
file folder icons display non-empty folders as empty
In using expression web to open a folder the icon shows the folder as empty. When opened a list of files shows. Picture folders show only generic...
Vista file management
Can I Permanently Remove Empty Removable Drives?
Hello. I'm using Vista Home Premium. In my Explorer List, I have four removable drives listed: E through H. These are non-existent, empty...
Vista hardware & devices
All Folders Empty
This afternoon my new Dell PC was delivered. I started up Microsoft Mail and imported all of my old folders from Outlook 6. I configured my...
Vista mail
empty folders???
I have Vista RC2 installed on a test system here at work. When I browse to a network resource (\\example\folder) it shows the folder as empty. ...
Vista networking & sharing

Our Sites
  • Ten Forums
  • Eight Forums
  • Seven Forums
  • PC Help Forum
  • Help Me Bake
  • Site Links
  • Contact Us
  • Privacy and Cookies
  • About Us
    Windows Vista Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

    Designer Media Ltd
    All times are GMT -5. The time now is 12:15.
    .