Solved deleting just 1 directory

Custom / CUSTOM
October 21, 2014 at 09:24:12
Specs: windows 7, 2.401 GHz / 2047 MB
I'm getting extremely annoyed cause I managed to create a directory with too many subdirs (loop), but I can't remove the directory. In addition to that, I was making a backup of that directory, so I need to remove that as well. Th bug is in Windows, which allows to create directories, it can't delete anymore. Not in Explorer, not using RMDIR.

It can't be that hard, although Windows is full of bugs ... there must be an easy way.


See More: deleting just 1 directory

Report •

✔ Best Answer
October 21, 2014 at 10:01:41
Create a Linux live CD, boot off it, then delete your files/folders with no interference from the "windows bugs"


#1
October 21, 2014 at 09:30:13
I don't know the reason, maybe it somehow allowed you create a forbidden name (there are several). What are the directory names?

Most likely it will need to be removed when Windows is not running. This little freebie does that:
http://emcosoftware.com/move-on-boot

Always pop back and let us know the outcome - thanks


Report •

#2
October 21, 2014 at 09:37:34
C:\otherdirectoryxxxxxx>dir
Volume in drive C is some_directoryC
Volume Serial Number is xxxx-yyyy

Directory of C:\otherdirectoryxxxxxx

21/10/2014 18:10 <DIR> .
21/10/2014 18:10 <DIR> ..
21/10/2014 18:09 <DIR> some_directory
0 File(s) 0 bytes
3 Dir(s) 41.312.743.424 bytes free

C:\otherdirectoryxxxxxx>rmdir /s /q some_directory
some_directory\some_directory\C\otherdirectory\some_directory\C\otherdirectory\some_directory\C\otherdirectory\some_directory\C\otherdirectory\
some_directory\C\otherdirectory\some_directory\C\otherdirectory\some_directory\C\otherdirectory\some_directory\C\otherdirectory\some_directory\
C\otherdirectory\some_directory\C\otherdirectory\some_directory\C\otherdirectory\some_directory\C\otherdirectory\some_directory\C\cygwin
\usr - The system cannot find the path specified.
some_directory\some_directory\C\otherdirectory\some_directory\C\otherdirectory\some_directory\C\otherdirectory\some_directory\C\otherdirectory\
some_directory\C\otherdirectory\some_directory\C\otherdirectory\some_directory\C\otherdirectory\some_directory\C\otherdirectory\some_directory\
C\otherdirectory\some_directory\C\otherdirectory\some_directory\C\otherdirectory\some_directory\C\otherdirectory\some_directory\C\cygwin
\var - The system cannot find the path specified.
some_directory\some_directory\C\otherdirectory\some_directory\C\otherdirectory\some_directory\C\otherdirectory\some_directory\C\otherdirectory\
some_directory\C\otherdirectory\some_directory\C\otherdirectory\some_directory\C\otherdirectory\some_directory\C\otherdirectory\some_directory\
C\otherdirectory\some_directory\C\otherdirectory\some_directory\C\otherdirectory\some_directory\C\otherdirectory\some_directory\C\dbacku
p - The directory is not empty.

C:\otherdirectoryxxxxxx>dir
Volume in drive C is some_directoryC
Volume Serial Number is xxxx-yyyy

Directory of C:\otherdirectoryxxxxxx

21/10/2014 18:10 <DIR> .
21/10/2014 18:10 <DIR> ..
21/10/2014 18:09 <DIR> some_directory
0 File(s) 0 bytes
3 Dir(s) 41.312.751.616 bytes free

C:\otherdirectoryxxxxxx>

message edited by tvc


Report •

#3
October 21, 2014 at 09:39:03
No, there's just too many directories

Prepared to take the risc and download this thing : http://pathtoodeep.com/

But it can't be actually used unless you buy it. That's one step too far, paying for bugs that Windows has no clue to fix themselves. There must be a way.

Tried the option with /MIR by using RoboCopy, but that errors out as well.

message edited by tvc


Report •

Related Solutions

#4
October 21, 2014 at 10:01:41
✔ Best Answer
Create a Linux live CD, boot off it, then delete your files/folders with no interference from the "windows bugs"

Report •

#5
October 21, 2014 at 10:12:40
Sounds not too bad, I guess I would be spending the rest of the evening anyway, so I might have just do it properly. Before somebody proposes to Format C:

edit: It worked. Used Ubuntu Live CD to boot, then I could access all of my fixed and USB drives. Remove the wanted directories (without any issue), then ADDITIONALLY clean the waste basket (or whatever it is called) cause in Linux GUI there is an undo mechanism (unlike command line). Otherwise, you'll have C:\.Trash-999 ... and in it, the same crap you can't delete. So, remove + clean the trash in Linux, and all works after that.

Funny that Linux manages Windows typical file systems better than MS does, but managing a filesystem properly has been a problem for MS for a long time. They still don't know if FAT or NTFS is better. Little do they know it's both crap.

message edited by tvc


Report •

#6
October 21, 2014 at 12:38:22
The reason Linux does it is because Windows is not running - it just looks at the file system on its own so you can about do what you like with it. Presumably "Move on boot" didn't help?

Glad to hear you sorted it anyhow and thanks for letting us know.

Always pop back and let us know the outcome - thanks

message edited by Derek


Report •

#7
October 21, 2014 at 13:18:35
I think the length of the path is limited to 240 characters in Windows.
I presume that the limit is higher in Linux. Maybe far higher.

It's *funny* that Windows can create paths longer than it can read.

-- Jeff, in Minneapolis


Report •

#8
October 22, 2014 at 06:15:40
Kinda like biting off more than it can chew

Report •

#9
October 22, 2014 at 08:18:14
MS are good at breaking their own rules. A while back (if not now) it was MS websites that often failed to open, rather than others who had dealt with IE browser changes.

Always pop back and let us know the outcome - thanks


Report •

#10
October 24, 2014 at 01:49:53
There is a limit somewhere, but the problem is not the limit itself. It's the fact that different OS commands cannot handle the same situation in a consistent way.

Which OS/filesystem combination allows for creation of anything it cannot remove afterwards ? Besides beta software.

For this specific problem, it seems MS still hasn't got any solution. It can be created easily : write a script that creates subdirectories in a loop. Normal users will never be creating 20 or 30 subdirectories by accident, but scripts can, easily. I had an error in my script. Which was fixed, obviously ;)


Report •

#11
October 24, 2014 at 01:53:41
If MS managed web clients in a correct manner - which they don't - they should allow for different versions to be on the system. That way, you can use old - but patched - versions of browsers for site X or Y, if that works better for those sites. And still, you can use the latest unstable version, if you really want to see buggy behaviour and bad working web sites.

But, they've integrated MSIEX into the OS, and made it nearly impossible for themselves to achieve that task, since an OS never wants to work with old versions. Rightfully so.

message edited by tvc


Report •

Ask Question