PC Review


Reply
Thread Tools Rate Thread

Cannot Delete Long File Name Files

 
 
alfred schmidt
Guest
Posts: n/a
 
      30th Oct 2003
I copied some files to my laptop for the purpose of making
CDs to archive data. Because I did not copy to the root
directory on laptop, copying to a subfolder resulted in a
LFN longer than the 259 limit. Is there a way to delete
these two files? Disk is NTFS format.
 
Reply With Quote
 
 
 
 
al.schmidt@wgint.com
Guest
Posts: n/a
 
      30th Oct 2003
I figured out the solution to my own problem. It was
easily accomplished by renaming all the parent folders to
single character names, thus reducing the path name
length. Once the path name had less than 259 characters, I
could then delete the files.
>-----Original Message-----
>I copied some files to my laptop for the purpose of

making
>CDs to archive data. Because I did not copy to the root
>directory on laptop, copying to a subfolder resulted in a
>LFN longer than the 259 limit. Is there a way to delete
>these two files? Disk is NTFS format.
>.
>

 
Reply With Quote
 
Fay
Guest
Posts: n/a
 
      5th Nov 2003
Just for FYI, 256 characters is the limit on path/filename
length. It's a hex limitation.

>-----Original Message-----
>I figured out the solution to my own problem. It was
>easily accomplished by renaming all the parent folders to
>single character names, thus reducing the path name
>length. Once the path name had less than 259 characters,

I
>could then delete the files.
>>-----Original Message-----
>>I copied some files to my laptop for the purpose of

>making
>>CDs to archive data. Because I did not copy to the root
>>directory on laptop, copying to a subfolder resulted in

a
>>LFN longer than the 259 limit. Is there a way to delete
>>these two files? Disk is NTFS format.
>>.
>>

>.
>

 
Reply With Quote
 
Ndi
Guest
Posts: n/a
 
      5th Nov 2003
> renaming all the parent folders to
> single character names, thus reducing the path name
> length.


More general solution: Use dir /x to get the short file names and delete
those. (cmd.exe)

--
Andrei "Ndi" Dobrin
Brainbench MVP
www.Brainbench.com


 
Reply With Quote
 
Mo
Guest
Posts: n/a
 
      27th Nov 2003
In my experience it's more complicated that 256 characters - some
utilities can cope with paths/names that are longer than 255 chars,
obviously the underlying NTFS file system can, and some can't, Windows
explorer for example can't (that's 32 bit programming for you, can't
cope with a number that won't fit into a byte!) This user managed to
copy a set of folders and created a path longer than 255 chars - but
then the delete command did't work. So file copy works differently than
file delete what brilliant design, such consistent programming.

I just wish that Microsoft would fix the file system so that it was
either impossible to create a path longer than 255 OR make all the
utilities that manipulate files work with the maximum path that it's
possible to create.

Fay wrote:
> Just for FYI, 256 characters is the limit on path/filename
> length. It's a hex limitation.
>
>
>>-----Original Message-----
>>I figured out the solution to my own problem. It was
>>easily accomplished by renaming all the parent folders to
>>single character names, thus reducing the path name
>>length. Once the path name had less than 259 characters,

>
> I
>
>>could then delete the files.
>>
>>>-----Original Message-----
>>>I copied some files to my laptop for the purpose of

>>
>>making
>>
>>>CDs to archive data. Because I did not copy to the root
>>>directory on laptop, copying to a subfolder resulted in

>
> a
>
>>>LFN longer than the 259 limit. Is there a way to delete
>>>these two files? Disk is NTFS format.
>>>.
>>>

>>
>>.
>>


 
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
http://LongPathTool.com - copy and delete path too long filesWindows tool to copy or delete files and folders with path too long orfilename too long error. Just browse to the file and press a button to copyor detele it, thats it! The applicati Martin Krag Windows XP MovieMaker 0 24th Apr 2011 12:27 PM
http://LongPathTool.com - find and delete/copy path too long filesfrom your hard drive or LAN Windows tool to copy or delete files and folderswith path too long or filename too long error. Just browse to the file andpress a button to copy or d Martin Krag Windows XP Internet Explorer 0 22nd Apr 2011 10:08 AM
http://LongPathTool.com - find and delete/copy path too long filesfrom your hard drive or LAN Windows tool to copy or delete files and folderswith path too long or filename too long error. Just browse to the file andpress a button to copy or d Martin Krag Windows XP Networking 0 22nd Apr 2011 10:07 AM
http://LongPathTool.com - find and delete/copy path too long filesfrom your hard drive or LAN Windows tool to copy or delete files and folderswith path too long or filename too long error. Just browse to the file andpress a button to copy or d Martin Krag Windows XP Configuration 0 22nd Apr 2011 10:05 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:30 AM.