2
D:\>rmdir /S default
default, Are you sure (Y/N)? y
default\default\default\default\default\default\default\default\default\default\default\default\default\default\default\default\default\default\default\default\
default\default\default\default\default\default\default\default\default\default\default - The system cannot find the path specified.

I've also tried Unlocker and various other tools. Can't get rid of this folder. I also tried moving it to another drive then format, no luck.

Oliver Salzburg
  • 89,072
  • 65
  • 269
  • 311
Mango
  • 125

4 Answers4

1

your path name is to long.

try `subst x: "default\default" (include the full path and about half the number of "default" then change to x: and try to delete the default folder there, then go back to the root default folder and delete those.

this way you shorten the full path, and windows can delete those folders

KutscheraIT
  • 1,040
1

Boot with a bootable Unix/Linux distribution and delete that Windows folder from the Unix/Linux OS.

1

Open up notepad and copy and paste the following:

FOR /L %%1 IN (1,1,50) DO ren test 1&cd 1

Presuming the folder is still located on the D drive, save this file as renamer.bat (or anything you want - .BAT is the important part).

Go to the command prompt and go to the root of the D drive, and type renamer and the batch file should launch and work its way through renaming each folder to something shorter, you should then be able to delete them.

Hope this helps.

William Hilsum
  • 117,648
1

So I had the same problem, but my folders were about 250 deep, so the subst didn't work for me... Plus they were hidden system folders. I ended up just creating a folder with a simple text file in it, and using robocopy /purge [FOLDER CONTAINING TEXT FILE] [FOLDER CONTAINING RECURSIVE FOLDERS]. I had to run this a half dozen times, as robocopy overlapped itself, I guess, but it worked.

Veritas
  • 11