Skip to main content
31 events
when toggle format what by license comment
Feb 19, 2020 at 5:29 comment added Dai I get this error: "sort: cannot read: /r: No such file or directory" UPDATE: Ah, my cmd is using Git-for-Windows' git\usr\bin\sort.exe instead of `system32\sort.exe).
S Oct 13, 2017 at 19:28 history suggested user198350 CC BY-SA 3.0
downloadsquad.com redirects to Huffington Post and superuser.com is not a place for website recommendations, some general cleaning
Oct 13, 2017 at 16:31 review Suggested edits
S Oct 13, 2017 at 19:28
Oct 13, 2017 at 16:25 comment added user198350 @Pyroglyph: Can you edit the answer (I don't fully understand what this means)?
Dec 31, 2016 at 0:58 review Suggested edits
Dec 31, 2016 at 12:49
Oct 12, 2016 at 9:09 review Suggested edits
Oct 12, 2016 at 11:02
May 22, 2016 at 15:56 comment added Pyroglyph Just a warning, this script destroys directory junctions too. I learned this the hard way.
Mar 1, 2016 at 2:22 comment added Aaron Reed The for loop command worked perfectly.
Dec 13, 2015 at 22:02 history edited Braiam CC BY-SA 3.0
from the command line, it wouldn't work as is
Dec 1, 2015 at 17:36 comment added mmj Look at stackoverflow.com/a/34025977/694360 to find out how to add this functionality to context menu.
Sep 14, 2015 at 17:14 history edited Mokubai CC BY-SA 3.0
Fixing dead link.
Jul 19, 2015 at 22:14 comment added shinzou This doesn't work if the folder is set to read only.
S Jun 21, 2015 at 6:04 history suggested Brock Adams CC BY-SA 3.0
Adding important note. At first blush the answer would seem to nuke all folders. Instead it throws up warnings for non-empty folders.
Jun 21, 2015 at 1:39 review Suggested edits
S Jun 21, 2015 at 6:04
Jan 24, 2013 at 21:55 review Suggested edits
Jan 24, 2013 at 22:00
Jan 24, 2013 at 21:52 review Suggested edits
Jan 24, 2013 at 21:54
Jun 16, 2011 at 1:35 history edited Gareth CC BY-SA 3.0
deleted 57 characters in body
Jan 19, 2010 at 20:59 comment added endolith RED is the best tool for this, since it handles directories with nothing but junk in them (Thumbs.db, .DS_Store), lets you permanently protect directories from deletion, shows a nice tree view, etc. I got it working in Windows 7 using the compatibility troubleshooter thing. There's also a list of alternative tools at the bottom of the RED web site.
Nov 16, 2009 at 21:21 vote accept mohlsen
Sep 16, 2009 at 13:14 comment added seanyboy for /f %d in ('dir /s/b') do rmdir "%d" should work as rmdir cannot remove a non-empty folder
Sep 11, 2009 at 18:27 comment added EBGreen Yep. It works. My mistake.
Sep 11, 2009 at 18:19 comment added caliban Make sure it is truly empty. A hidden desktop.ini is still considered a file. same as a thumbs.db. If you want to verify whether this works, create a test directory with directories inside that are empty and populated. It works, I've verified.
Sep 11, 2009 at 17:59 comment added EBGreen Still won't delete a directory that contains an empty directory.
Sep 11, 2009 at 16:14 history edited caliban CC BY-SA 2.5
added 69 characters in body
Sep 11, 2009 at 16:13 comment added caliban Got it, couple of errors with the DownloadSquad's command (!!). I've amended in my answer. :)
Sep 11, 2009 at 16:06 comment added EBGreen Also the batch version would not handle spaces in the directory names. I'm pretty sure that it would not remove a directory that contained only empty sub directories either.
Sep 11, 2009 at 16:02 comment added caliban Hang on, testing command in my Windows VM.
Sep 11, 2009 at 15:58 comment added EBGreen Using the batch version gives me an error: The system cannot find the file dir /ad/b/s | sort /R.
Sep 11, 2009 at 14:31 comment added mohlsen that tool looks good. I will check it out and report back
Sep 11, 2009 at 13:50 comment added caliban P.S I suggest you try the GUI-based tool first, before trying any command-line commands that can potentially delete all files.
Sep 11, 2009 at 13:44 history answered caliban CC BY-SA 2.5