Interesting empty file behaviour in Windows Vista upgrades

Did you upgrade from Windows XP to Windows Vista? Do you turn off Explorer’s “Hide Known File Types” option?

If so, try this:

Right-click on your desktop, select “New” and then “Text File”.

Name your text file “test.cmd”. Approve the prompt that tells you changing the file type might cause your world to stop.

Now try and edit the test.cmd file – right-click it, select “Edit”.

Jesper and I both get the following message:

At the moment, I just can’t think of a good explanation – do you get the same behaviour?

We’ve already discovered that it doesn’t seem to happen if you had a fresh install of Windows Vista, only if you upgraded to Windows Vista from Windows XP.

2 thoughts on “Interesting empty file behaviour in Windows Vista upgrades”

  1. That’s what I thought to begin with, but here’s the setting:

    C:\>reg query hkcr\cmdfile\shell\edit\command

    HKEY_CLASSES_ROOT\cmdfile\shell\edit\command

       (Default)    REG_EXPAND_SZ    “%SystemRoot%\System32\NOTEPAD.EXE” “%1″

    As far as I can tell, that’s exactly the same as on a Vista clean install.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>