The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Explorer Bug, Long Path, damaged directories.

0 replies.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a flat view of this topic  Flat View
Previous Topic   Next Topic
Threaded View: This topic has 0 replies on 1 page
David Cumps

Posts: 319
Nickname: cumpsd
Registered: Feb, 2004

David Cumps is a Belgian Student learning .NET
Explorer Bug, Long Path, damaged directories. Posted: Apr 10, 2004 8:05 AM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by David Cumps.
Original Post: Explorer Bug, Long Path, damaged directories.
Feed Title: David Cumps
Feed URL: http://weblogs.asp.net/cumpsd/rss?containerid=12
Feed Description: A Student .Net Blog :p
Latest .NET Buzz Posts
Latest .NET Buzz Posts by David Cumps
Latest Posts From David Cumps

Here is something I believe should be prevented:

In Explorer, first create a very big directory tree, consisting out of small directory names.

Now, from the bottom, rename these directories to about 100 characters.

When you reached the top, try browsing the tree, you'll see it blocks you after the third directory.

You can't select it, it will jump back, you can't rename that one, you can't delete the entire tree at once.

You can however to get rid of it, start renaming from the top, to all short names again, until you can delete them.

I realize this has something to do with character limits on paths, but this shouldn't be possible, should it? You can't even delete them properly.

Is there a way to prevent this from happening? Or at least be able to clean it up without too much hastle?

I created a small proof of concept, using three .bat files. Extract the zip and run Destroy.bat, it will first call Mtree.bat to make the small directory tree, after which it calls Rtree.bat to rename the directories.

Feel free to look at the .bat files with a text editor, to check what it does. And as usual: I'm not responsible for any damage what so ever that might come from these posts. (Just playing safe, before someone acuses me of doing a deltree ;))

Read: Explorer Bug, Long Path, damaged directories.


Topic: Microsoft Download Music Service for 2004 ? Previous Topic   Next Topic Topic: If you want to buy a used car...

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use