win7 64位快捷方式bug
2018-10-10 本文已影响0人
赵海洋
通过IShellLink::SetIconLocation给新创建的设置一个exe的图标路径后,在windows 7 64位下,右键该快捷方式,然后点击切换图标,会提示Windows 找不到%ProgramFiles%\xxx\xxx.exe
,如图:

经查阅,这应该算是windows 7版本的bug,它在点击更改图标按钮时自动将C:\Programe files (x86)\
替换成了%ProgramFiles%
,但在64位程序(explorer.exe)中%ProgramFiles%
对应的是C:\Programe files\
,所以就出错了。
参考链接: