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.
Con
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
@="Shortcut"
"EditFlags"=dword:00000001
"IsShortcut"=""
@="{00021401-0000-0000-C000-000000000046}"
@="{750fdf0e-2a26-11d1-a3ea-080036587f03}"
@="{00021401-0000-0000-C000-000000000046}"
@="{00021401-0000-0000-C000-000000000046}"
@="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}"
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.
Con
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
@="Shortcut"
"EditFlags"=dword:00000001
"IsShortcut"=""
@="{00021401-0000-0000-C000-000000000046}"
@="{750fdf0e-2a26-11d1-a3ea-080036587f03}"
@="{00021401-0000-0000-C000-000000000046}"
@="{00021401-0000-0000-C000-000000000046}"
@="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}"
skywalker,
Do you understand that your RegEdit script won't delete NeverShowExt value from HKCR\lnkfile? This can be done using the following:
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).
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
"NeverShowExt"=-
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).
The script I posted was what I imported after I manually deleted NeverShowExt.
So, my script would not overwrite NeverShowExt?
So, my script would not overwrite NeverShowExt?
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.
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.