PC Review


Reply
Thread Tools Rate Thread

deleting file whose path is already too long

 
 
John Monroe
Guest
Posts: n/a
 
      15th Jul 2004
Not sure how it happened, but a user created a file in an
NTFS LAN folder whose path is longer than 256 characters.

How to delete or rename it to something shorter?

I can't even get its properties from cmd.exe or Windows
Explorer.

thx,

John
 
Reply With Quote
 
 
 
 
Brian [MSFT]
Guest
Posts: n/a
 
      16th Jul 2004
One simple method I've used in the past to manage folder trees longer than
MAX_PATH is to break the trees into chunks. So..
Traverse the directory as deep as you can within Explorer or the command
shell. Then move all the contents below it to the root of the drive (or a
folder under the root) so you now have a second directory tree. If the new
tree is still greater than MAX_PATH, repeat until you get a manageable tree.
What you do with the multiple directory trees is your business, but at least
they're manageable .

--
Brian [MSFT]

Disclaimer: This posting is provided "AS IS" with no warranties, and confers
no rights. Please do not send e-mail directly to this alias. This alias is
for newsgroup purposes only.

"John Monroe" <(E-Mail Removed)> wrote in message
news:2de8401c46aa7$f4cced50$(E-Mail Removed)...
> Not sure how it happened, but a user created a file in an
> NTFS LAN folder whose path is longer than 256 characters.
>
> How to delete or rename it to something shorter?
>
> I can't even get its properties from cmd.exe or Windows
> Explorer.
>
> thx,
>
> John



 
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 Setup 0 22nd Apr 2011 10:06 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
Long Path Tool - Deleting long path files Martin Krag Microsoft Windows 2000 Networking 0 28th Mar 2011 08:19 AM
Long Path Tool - Deleting long path files Martin Krag Windows XP Networking 0 28th Mar 2011 08:17 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:16 PM.