How to change the icon of .bat file programmatically?

前端 未结 10 620
予麋鹿
予麋鹿 2021-02-05 00:45

I\'d like to know what\'s the way to actually set the icon of a .bat file to an arbitrary icon. How would I go about doing that programmatically, independently of t

10条回答
  •  借酒劲吻你
    2021-02-05 01:04

    try with shortcutjs.bat to create a shortcut:

    call shortcutjs.bat -linkfile mybat3.lnk -target "%cd%\Ascii2All.bat" -iconlocation "%SystemRoot%\System32\SHELL32.dll,77"
    

    you can use the -iconlocation switch to point to a icon .

提交回复
热议问题