Vista Rant #2 - Incredible disappearing files

If you like obscure bugs, then I think you'll love this little gem!

USB flash drives are wonderful little gadgets, and I have several of them to store various files. Tonight I was using a flash drive to move some files around between machines when I noticed a slight problem. It seems when I deleted one of the files on the flash drive all the other files in file list disappeared! But, wait...I know I only had one file highlighted, so what happened to the other files? Fortunately, a quick press of the F5 function key refreshed the window and my remaining files reappeared.

This defect manifests itself in various ways , but here is the easy way to reproduce it:

  • Insert your favorite flash drive and open an explorer window.

  • Resize the explorer window's horizontal axis to a point where the tree list pane just begins to collapse
    (The size of the tree list pane is not especially critical to this problem, but this step makes it easier to reproduce the defect)

  • image

  • Right click in the file list pane and select New -> Text Document from the context menu

  • Rename the file with a long file name (string length must exceed the width of the file list pane)

  • image 

  • Press the F5 function key to refresh the window
    (Notice the file name extends beyond the window rather than being truncated by the ellipsis)

  •  image

  • Right click in the file list pane and select New -> Text Document from the context menu

     image

  • Abracadabra! No files! (Also notice there is no scrollbar.)

  • Press the F5 function key again...and abracadabra....the file(s) reappear!

As noted above there are multiple ways to reproduce this particular bug, but the root cause is the same regardless of whether the files preexist and you highlight multiple files, highlight and select to delete that file, etc.

It does not require a flash drive to replicate this defect. But, I was using a flash drive when I encountered this problem and you can probably imagine my initial reaction (somewhere between surprise and horror) when the remaining files on the flash drive seemed to have disappeared...lost forever!

Now, this is not an especially nasty bug and it is rather obscure. But if you have a lot of files with long file names, and you don't maximize explorer views then I bet your F5 function key might get a good workout simply because there appear to be so many ways to reproduce this problem.

First, Windows taught us the 3 finger salute. And now with Windows Vista (which I still think is way cool) we have a 1 finger (F5 function key) salute!

Have fun playing with this one!