I want to change the icon of a .lnk
file after I have created it. This is my main code so far:
import win32com.client
shell = win32com.client.Dispatch("WScript.Shell")
shortcut = shell.CreateShortCut("shortcut.lnk")
shortcut.Targetpath = "C:\\Users\Benjie\AppData\Local\Programs\Python\Python36\python.exe"
shortcut.save()
This creates a shortcut with the python icon, but I want to change it to a different icon, if possible, to the icon of a different .exe
file.
How can I do this?
I'd preferably use one of the windows api librarys, but if this is not possible, an external library would work aswell.
Thanks