PC Review


Reply
Thread Tools Rate Thread

i can't delete a directory !!! someone help me please !

 
 
=?Utf-8?B?d2luZG93cyB1c2Vy?=
Guest
Posts: n/a
 
      19th Apr 2004
d:\1\1\1\1\1\1\1\1\1\1\1\.........................
it's so long that windows can't delete

even " rd /s \1 " didn't work

OMG someone help me! Please

though it's harmless but ....
 
Reply With Quote
 
 
 
 
Robert
Guest
Posts: n/a
 
      19th Apr 2004
I won't ask you how you managed to create such a thing,
but here is what you are up against:

You can create a directory tree with one command, such:
md \1\1\1\1\...\1

BUT, you cannot delete such a tree with one command (DOS
that is), because they are all nested directories, and
thus all but the last one on the right, contain something.
Even though RD or RMDIR with the /S option should do it,
and maybe the length does have an impact...

You need to do this:

I havn't tried it, but...
If you can find deltree, copy it into your D: root
directory -- enter deltree \1 -- though it's not intended
for WIN XP, it may do the job, it's an external DOS
command, so you should be able to find it on a Win 98
machine...otherwise,

D:tree 1

and note the nesting count.

Now do this,

d:rd \1\1\1\1\...\1 for the number of times you counted in
the tree command. Press enter.
You should not get any message. If you do, your count was
off by one or so... play around by adding or removing
a "\1" till you press enter and don't get an error. Then
cycle thru the loop.

The Loop:
Now press your up arrow, (which outputs the last command)
backspace 2 (which erases the \1 chars on the right)
and press enter.
repeat till all "\1" directories have been removed.

You can write a program to do this if it's something you
keep having to do, but one time only, the delete,
backspace 2, enter -- loop by hand will do the job.

HTH,
rob


>-----Original Message-----
>d:\1\1\1\1\1\1\1\1\1\1\1\..........................
>it's so long that windows can't delete.
>
>even " rd /s \1 " didn't work!
>
>OMG someone help me! Please.
>
>though it's harmless but ....
>.
>

 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System.IO.Directory.Delete Throws "the directory is not empty" codeboy Microsoft ASP .NET 1 8th Jun 2009 01:08 PM
Cannot delete a directory. Error message is directory name is invalid erik Microsoft Windows 2000 5 27th May 2004 02:23 PM
How to delete a directory with vb.net if the directory contains long paths ? Arjan van den Noort Microsoft VB .NET 0 13th Nov 2003 11:20 AM
Can not delete directory on ftp Stephan Smolar Microsoft Windows 2000 Advanced Server 1 17th Sep 2003 05:08 PM
Can not delete directory Ricardo Microsoft Windows 2000 File System 1 25th Aug 2003 04:41 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:20 AM.