Create shortcut files in Windows 10 using Python 3.7.1
问题 I found this piece of code, but it doesn't run anymore with Windows 10 and Python 3.7.1: import win32com.client import pythoncom import os # pythoncom.CoInitialize() # remove the '#' at the beginning of the line if running in a thread. desktop = r'C:\Users\XXXXX\Desktop' # path to where you want to put the .lnk path = os.path.join(desktop, 'NameOfShortcut.lnk') target = r'C:\Users\XXXXX\Desktop\muell\picture.gif' icon = r'C:\Users\XXXXX\Desktop\muell\icons8-link-512.ico' # not needed, but