Windows Vista Tips

Windows Vista Tips > Newsgroups > Windows Vista Performance > Unable to delete folder with too long name

Reply
Thread Tools Display Modes

Unable to delete folder with too long name

 
 
sunil
Guest
Posts: n/a

 
      11-15-2009
Dear Sir,

Eclipse has created folder inside folder recusively. Now I am not able to
delete this folder using neither 'Windows Explorer' nor using command prompt
using RMDIR/S.
It tells names of folder is too long.

Pleasew help me in how to delete it.

Regards,
Sunil

 
Reply With Quote
 
 
 
 
Gil Tennant
Guest
Posts: n/a

 
      11-15-2009
It could be created by Malware, which still has it open..

Try: http://ccollomb.free.fr/unlocker/

Or...

Try knoppix or ubuntu - boot the disk and delete what you need to delete.


--
Gil Tennant



"sunil" wrote:

> Dear Sir,
>
> Eclipse has created folder inside folder recusively. Now I am not able to
> delete this folder using neither 'Windows Explorer' nor using command prompt
> using RMDIR/S.
> It tells names of folder is too long.
>
> Pleasew help me in how to delete it.
>
> Regards,
> Sunil
>
> .
>

 
Reply With Quote
 
 
 
 
R. C. White
Guest
Posts: n/a

 
      11-16-2009
Hi, Sunil.

Even though we don't usually see it, each file/folder with a Long File Name
(LFN) also has a computer-created Short File Name (SFN), also referred to as
an 8.3 filename, since it is limited to 8 characters plus and optional
extension of up to 3 characters. (This goes back in computer history to
MS-DOS and before.)

To see the 8.3 filename of your folder, open a Command Prompt and enter:
Dir /x

That command should present the usual listing of all the files and folders
in that directory, as with the plain Dir command. But the /x switch will
create an additional column, before the LFN, showing the SFN for any file or
folder whose LFN does not also meet the 8.3 requirements. Perhaps there is
a space or other "illegal" character in the filename. The SFN for a LFN
will probably have 6 characters, followed by ~1, or some other digit.

Use the Del or RD command with that SFN to delete your file or remove your
folder. Using RD <SFN> /s for the top-level folder should remove that whole
directory tree.

(As always in a Command Prompt window, type the name of any command followed
by /? to see all the switches and parameters available with that command,
such as: Dir /? )

RC
--
R. C. White, CPA
San Marcos, TX

Microsoft Windows MVP
Windows Live Mail 2009 (14.0.8089.0726) in Win7 Ultimate x64

"sunil" <> wrote in message
news:...
> Dear Sir,
>
> Eclipse has created folder inside folder recusively. Now I am not able to
> delete this folder using neither 'Windows Explorer' nor using command
> prompt using RMDIR/S.
> It tells names of folder is too long.
>
> Pleasew help me in how to delete it.
>
> Regards,
> Sunil


 
Reply With Quote
 
mybad
Guest
Posts: n/a

 
      01-24-2010

I had this same problem and your solution worked! I opened a comman
prompt and tried the dir /x command and sure enough there was anothe
name for the folder
Thanks muc

--
mybad
 
Reply With Quote
 
arlanda
Guest
Posts: n/a

 
      03-15-2010

This stupid problem has been around for too long since I started using
NT 4.0. The problem exist because of limitation with 32-bit
architecture.

The solution isn't obvious but it's quite simple.

If you tried to rename the file, Windows will prevent you.

If you tried to copy/move the file into another folder with shorter
path, Windows will prevent you.

If you tried to rename the folder where the file is currently, Windows
will prevent you.

To get around all these, simply start renaming folder from the very top
(i.e. rename root folder first before renaming level 1 sub-folder before
level-2 sub, etc. ) until Windows finally release their deathly grip on
the file before you will finally be able to do anything with it.

Rename to shorter name, delete, or move the problem file before renaming
folders back to what it was before, keeping in mind the 256-character
limitation (file name + path).

Hopefully we will not have such issue on a 64-bit platform.


--
arlanda
 
Reply With Quote
 
Junior Member
Join Date: Mar 2012
Posts: 11

 
      03-03-2012
LONG PATH TOOL
Do you have error messages?, like :
• Path too long
• Error cannot delete file: cannot read from source file or disk
• Cannot delete file: Access is denied
• There has been a sharing violation.
• Cannot delete file or folder The file name you specified is not valid or too long. Specify a different file name.
• The source or destination file may be in use.
• The file is in use by another program or user.
• Error Deleting File or Folder
• Make sure the disk is not full or write-protected and that the file is not currently in use.
• Error Copying File or Folder.
• Cannot remove folder.
• The filename or extension is too long.
• Path too deep.
• Destination Path Too Long.
• Could not find this item.
• Filename is not valid.
• The file could not be accessed.
• The path you entered, is too long. Enter a shorter path.
• File Name could not be found. Check the spelling of the filename, and verify that the file location is correct.


Download LONG PATH Tool 3.6 at longpathtooldotcom
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
microsoft host controller driver update - how long is too long? slywlf Windows Update 8 03-31-2010 09:22 PM
Fix for long, long, long deleting and copying of files? Hope Windows Vista General Discussion 14 02-11-2008 12:12 AM
How long is too long Mark McDonald Windows Small Business Server 1 09-04-2007 10:09 AM