deleting file whose path is already too long

  • Thread starter Thread starter John Monroe
  • Start date Start date
J

John Monroe

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
 
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.
 
Back
Top