For those who don't like the file extension for .lnk not being shown
in Explorer, this reg file fixes that.

My reason for seeking this is because you can't zip up .lnk files because the archiver can't see them unless you use a command line version, like wzzip.


Doing so, makes all your desktop icons acquire a .lnk at the end of the name.

DON'T delete the extension, or your icons will not work anymore. :-(

Windows Registry Editor Version 5.00






Posted on 2010-04-27 14:46:23 by skywalker

Do you understand that your RegEdit script won't delete NeverShowExt value from HKCR\lnkfile? This can be done using the following:

Windows Registry Editor Version 5.00


To notify Windows Explorer of that change, use SHChangeNotify(SHCNE_ASSOCCHANGED, SHCNF_IDLIST, NULL, NULL) (Explorer notifies itself when "File Types" tab is used in "Tools"/"Folder Options..." dialog).
Posted on 2010-04-28 07:26:20 by baldr
The script I posted was what I imported after I manually deleted NeverShowExt.

So, my script would not overwrite NeverShowExt?

Posted on 2010-04-28 11:30:52 by skywalker

I think you've meant "exported". Yes, it simply overwrite existing values with their defaults (hence someone can delete HKCR\lnkfile and import your script to recreate it without NeverShowExt). Overwriting NeverShowExt's value yields nothing (shell checks its presence, not value). Special value of single unquoted hyphen tells RegEdit to delete it.

RegEdit script is that simple: sequence of commands to execute. If you don't mention something, RegEdit won't do anything with it.

BTW, there is Reg program in Windows, "reg delete HKCR\lnkfile /v NeverShowExt" will do the same as my script.

Disclaimer: registry editing can be dangerous to your mental health.
Posted on 2010-04-28 13:14:07 by baldr