Board logo

标题: [其他] 求助:批处理更改桌面某快捷方式的图标为自己需要的图标 [打印本页]

作者: hfstar    时间: 2020-9-10 12:07     标题: 求助:批处理更改桌面某快捷方式的图标为自己需要的图标

假设桌面某快捷方式为1.lnk 我怎样把一个名称为2.ico图标更改为1.lnk的图标。请各位大佬指点一下。
作者: smss    时间: 2020-9-11 07:00

举个栗子你尝尝
mshta VBScript:Execute("Set a=CreateObject(""WScript.Shell""):Set b=a.CreateShortcut(a.SpecialFolders(""Desktop"") & ""\控制中心.lnk""):b.TargetPath=""%ProgramFiles%\OEM\GamingCenterU\Core\GamingCenterU.exe"":b.WorkingDirectory=""%ProgramFiles%\OEM\GamingCenterU\Core"":b.IconLocation=""%ProgramFiles%\OEM\GamingCenterU\logo\gamingcenter_MR.ico"":b.Save:close")
作者: hfstar    时间: 2020-9-11 07:46

回复 2# smss


    多谢多谢




欢迎光临 批处理之家 (http://www.bathome.net/) Powered by Discuz! 7.2