Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • 1
    The one-liner batch file didn't work for me (I get the error "%%d was unexpected at this time."), and the Remove Empty Directories program will not install (it says on the linked page that it is not compatible with Windows 7 anyway). This program worked like a charm.
    – Phoenix
    Commented Mar 7, 2010 at 11:52
  • 1
    As user36580 wrote below, "it is likely you are running directly from the command line. In that case, change the double %% to a single %" Commented Jul 15, 2012 at 3:27
  • 1
    I like this over the pure command-line version as it allows you to preview the things that get deleted. You can always call it from the command-line using "%~dp0\EmptyFolderNuker.exe" %cd%. Commented Dec 27, 2014 at 14:30
  • 1
    @rob-kam The URL for "EmptyFolderNuker" isn't available anymore.
    – PeterCo
    Commented Aug 9, 2019 at 8:13
  • @PeterCo Thanks, fixed now.
    – Rob Kam
    Commented Aug 12, 2019 at 19:49