Skip to content

Vista Bug – Incredible Disappearing Files

Originally Published Monday, August 20, 2007

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!

3 Comments

  1. testingmentor wrote:

    So did you send a bug to the Windows team ?

    John

    Friday, August 31, 2007 12:56 AM by JohnGuin
    # re: Vista Rant #2 – Incredible disappearing files
    Hi John,

    No, I didn’t send a bug to the Windows team, but someone else did and it appears they are looking at it for Windows 7.

    This is a bug in list view; and it is also a classic boundary bug. Once the label box length for the filename (the box around the file name that you can see when you right click a file to rename) exceeds the width of the list pane by 1 pixel the list view window repaints itself so the left side of longest filename is aligned with the right side of the list pane.

    Tuesday, September 04, 2007 11:58 AM by I.M.Testy

    Friday, November 13, 2009 at 9:13 PM | Permalink
  2. testingmentor wrote:

    this bug is not just a nuisnance; It is a royal pain !

    I shrink all my explorer windows to 300 x 300. And I use LIST view. This keeps my desktop compact. BUT, it means that ALL folders have file names that exceed the window width. Thus, if I click into a subfolder, and then go back up one level, my files disappear from view. I then have to repat View -> list.

    Of note, SMALL ICONS don’t do this, but they are sorted horizontally (nuts…)

    anyway

    Nick

    Tuesday, September 11, 2007 8:13 PM by aoz

    Friday, November 13, 2009 at 9:13 PM | Permalink
  3. testingmentor wrote:

    Hi Nick,

    I feel your pain. I like to also keep my explorer windows small, and also prefer list view which is how I came across this defect. (This is a defect in list view functionality.)

    You must have some pretty long descriptive file/folder names not to fit in a 4″ wide window. :-)

    I didn’t intend to trivialize this problem. It is a defect, but not many customers (other than you and I) have reported this problem, and fortunately it does not require jumping through a bunch of hoops to recover.

    I am glad they are planning to address it in Windows 7. Until then, our F5 keys will be getting a pretty good workout. :-)

    Friday, September 14, 2007 11:08 AM by I.M.Testy

    Friday, November 13, 2009 at 9:14 PM | Permalink

One Trackback/Pingback

  1. New Gadgets | Vista Bug - Incredible Disappearing Files on Friday, November 13, 2009 at 9:46 PM

    [...] Original post by I.M. Testy [...]