Google Answers Logo
View Question
 
Q: deleting troublesome folders ( Answered 5 out of 5 stars,   5 Comments )
Question  
Subject: deleting troublesome folders
Category: Computers > Operating Systems
Asked by: gnossie-ga
List Price: $12.00
Posted: 26 Jul 2005 18:58 PDT
Expires: 25 Aug 2005 18:58 PDT
Question ID: 548320
I'm looking for a program downloadable from the internet that will
allow me to delete folders and files from my computer:  kind of like a
Super-Deleter.  Free is obviously preferable, but I will buy the
software if I have to.

Why don't you just right click and select "delete," you ask? (I'm
using Windows XP).  Because when I do, I get the following error
message about 15 seconds into the deletion process:

"Cannot delete [name of file].  The file name you specified is not
valid or too long.  Specify a different file name."

I have a folder on my desktop, you see, that is kind of like a Chinese
box.  Inside it are folders, inside those are more folders, and on and
on.

Anyhow, I want to delete the entire thing.

Unfortunately, some of these files go way back.  Over the years some
of them have apparently acquired LONG FILE NAMES, and now Windows
won't delete the root folder.

I can't go inside and rename these files, since we're talking about
hundreds, and you can only re-name a bunch of documents inside of one
folder, not through the different levels, if you follow me.

So it's pretty amazing!  Windows refuses to delete it because some of
the names are too long, and it would take hours and hours to go in
there and give all the offending files shorter names just so they
could be deleted.

A real pain in the neck.

Anyhow, is there some sort of small application out there that will
simply delete this folder out of existence without being so fussy?

NOTE:  you also get the money if you can explain how to fix this
problem (without going in and renaming all the files individually, of
course).

Request for Question Clarification by sublime1-ga on 26 Jul 2005 20:37 PDT
gnossie...

Have you tried deleting from a command prompt after booting
up in safe mode? If you need help in attempting this, just
let me know the location of the folder when viewed in Windows
Explorer.

Let me know where this takes you...

sublime1-ga

Clarification of Question by gnossie-ga on 26 Jul 2005 20:45 PDT
No, I don't know how to do this using command prompt.  The folder's on
the desktop.  It's called, let's say, "dgg"

Request for Question Clarification by sublime1-ga on 26 Jul 2005 20:50 PDT
Further research indicates this may be a problem with SP2
on XP. I'm guessing you're using Windows XP SP2? Do you 
also have any Connectstor devices installed?

Request for Question Clarification by sublime1-ga on 26 Jul 2005 21:01 PDT
Okay...shut down your PC and reboot. When you get to the
black screen just before the Windows color boot screen,
press F8 for Windows boot options. Select Safe Mode with
Command Prompt.

When you get to the command prompt, type:
del C:\Documents and Settings\YourLogonName\Desktop\dgg\*.*

If it gives you any trouble locating the folder, you may
have to navigate to the folder first, by using the cd
(change directory) command:

C:\ cd Documents and Settings
C:\ cd YourLogonName
C:\ cd Desktop
C:\ cd dgg

Your command prompt should now read:
C:\Documents and Settings\YourLogonName\Desktop\dgg\

then just type:
del *.*

Then reboot normally. If you didn't get any error messages,
and it was successful, you should now have an empty dgg
folder on your desktop, and you should be able to delete
it normally.

Let me know where this takes you...

sublime1-ga

Clarification of Question by gnossie-ga on 27 Jul 2005 06:28 PDT
thanks for all your help, first of all.

I followed your instructions precisely, and though they seemed to
work, when I rebooted normally, the folder was there and taking up 3Gb
of space, as if nothing happened.

Now when I try to delete it by right-clicking, it says:  Access denied
(to a specific file), even though I'm logged in as the admin!

Request for Question Clarification by sublime1-ga on 27 Jul 2005 13:19 PDT
Windows can be so rude!

Okay, so let's play with some of the options available with the 
del command. Go back into safe mode with command prompt to run
it again. This time use the /F parameter, which forces the 
deletion of read-only files. Also use the /S parameter, which
should make it print out every file that is deleted, so you'll
have some indication of whether it's done anything. So...

del /F /S C:\Documents and Settings\YourLogonName\Desktop\dgg

For good measure, you can also try the erase command:

erase /F /S C:\Documents and Settings\YourLogonName\Desktop\dgg

The *.* is really unnecessary, as it will automatically erase
any and all files in the specified directory.


If that doesn't work, we can try a third-party substitute for
Windows Explorer called Xplorer2 Lite, made by Nikos Bozinis:
http://zabkat.com/x2lite.htm

It has a delete function which is probably dependent on the
Windows function, but it also has a shred function in the
menu which may bypass Windows somehow. It's worth a try if
you're desperate, and an alternative to Windows Explorer is
always a good thing to have around.

Let me know where this takes you...

sublime1-ga

Request for Question Clarification by sublime1-ga on 27 Jul 2005 13:32 PDT
I just now noticed mister4u-ga's comments. The first two
programs won't be of any help, as they are essentially
duplicating what we're doing by rebooting into command
prompt. The last program may be of some use, since it
addresses files using both short and long names and 
also using the UNC, or Universal Naming Convention.
It's worth a shot if what I've suggested doesn't work.

sublime1-ga

Clarification of Question by gnossie-ga on 28 Jul 2005 01:07 PDT
Thanks sublime, your second suggestion did indeed work.

That's a lot of typing for just 12 bucks, but you're welcome to it!

Thanks.
Answer  
Subject: Re: deleting troublesome folders
Answered By: sublime1-ga on 28 Jul 2005 02:48 PDT
Rated:5 out of 5 stars
 
gnossie...

Given that we've resolved your problem, I'll go ahead
and post a formal answer, and post the highlights of
my previous contributions here, for the sake of future
readers.

Do let us know, for the record, what you did, specifically,
that finally resolved the problem.

-----------------------------------------------------------

Okay...shut down your PC and reboot. When you get to the
black screen just before the Windows color boot screen,
press F8 for Windows boot options. Select Safe Mode with
Command Prompt.

When you get to the command prompt, type:
del C:\Documents and Settings\YourLogonName\Desktop\dgg\*.*

If it gives you any trouble locating the folder, you may
have to navigate to the folder first, by using the cd
(change directory) command:

C:\ cd Documents and Settings
C:\ cd YourLogonName
C:\ cd Desktop
C:\ cd dgg

Your command prompt should now read:
C:\Documents and Settings\YourLogonName\Desktop\dgg\

then just type:
del *.*

Then reboot normally. If you didn't get any error messages,
and it was successful, you should now have an empty dgg
folder on your desktop, and you should be able to delete
it normally.

That having failed...

Okay, so let's play with some of the options available with the 
del command. Go back into safe mode with command prompt to run
it again. This time use the /F parameter, which forces the 
deletion of read-only files. Also use the /S parameter, which
should make it print out every file that is deleted, so you'll
have some indication of whether it's done anything. So...

del /F /S C:\Documents and Settings\YourLogonName\Desktop\dgg

For good measure, you can also try the erase command:

erase /F /S C:\Documents and Settings\YourLogonName\Desktop\dgg

The *.* is really unnecessary, as it will automatically erase
any and all files in the specified directory.


If that doesn't work, we can try a third-party substitute for
Windows Explorer called Xplorer2 Lite, made by Nikos Bozinis:
http://zabkat.com/x2lite.htm

It has a delete function which is probably dependent on the
Windows function, but it also has a shred function in the
menu which may bypass Windows somehow. It's worth a try if
you're desperate, and an alternative to Windows Explorer is
always a good thing to have around.

Best regards...

sublime1-ga
gnossie-ga rated this answer:5 out of 5 stars
Not exactly what I asked for, but so what.  It definitely got the job
done.  Good show.

Comments  
Subject: Re: deleting troublesome folders
From: hiddendepths-ga on 27 Jul 2005 03:32 PDT
 
I have seen this before a few times. Last time was a week ago.

This is usually something to do with leeching activities (someone
coming in over your internet connection and corrupting your pc) or
file system corruption.

Try deleting all items in your internet explorer cache - you might
find that its not possible....

Chances are even if you delete these folders (and its not easy) you
probably have corruption elsewhere on your machine. If you can I would
suggest you reinstall it.

Regards,

HiddenDepths
Subject: Re: deleting troublesome folders
From: bumblebeebzzz-ga on 27 Jul 2005 09:46 PDT
 
I have seen this too with certain viruses.  Make sure you run an
updated virus scan (preferrably an online virus scan like panda,
housecall, or bitdefender.  If possible, boot into safemode with
networking, and run those online scans.
Subject: Re: deleting troublesome folders
From: mister4u-ga on 27 Jul 2005 10:33 PDT
 
Either of these programs should do what you want
http://www.snapfiles.com/get/emcomob.html
http://www.snapfiles.com/get/moveonboot.html
Subject: Re: deleting troublesome folders
From: mister4u-ga on 27 Jul 2005 10:39 PDT
 
I have heard good things about this one too http://www.purgeie.com/delinv.htm
Subject: Re: deleting troublesome folders
From: stevewin-ga on 18 Aug 2005 08:53 PDT
 
I found that you can delete folders that are too long by using
robocopy which is available from the Microsoft resource kit. NOTE: YOU
MUST BE CAREFUL as wrong syntax can delete files.  To use robocopy
create another folder and use the mir option. EXAMPLE: I have a folder
on C: called FOO that has many many sub folders and thus I can not
delete if via normal methods. To delete it create another folder
(outside of FOO) and call it FooNEW. Then execute the following
robocopy c:\FooNEW c:\FOO /mir   Robocopy will need to be in your
path. This will make an exact copy (mirror) of the empty folder FooNEW
into FOO, thus removing all of the folders including those too long
from FOO. Once this is complete you can delete FOO and FOONEW.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy