Python创建任何文件的快捷方式
import os, winshell, win32com.client, Pythoncom
desktop = winshell.desktop()
#desktop = r"path to where you wanna put your .lnk file"
path = os.path.join(desktop, 'File Shortcut Demo.lnk')
target = r"C:%users\lenovo\Documents\sample2.txt"
icon = r"C:%users\lenovo\Documents\sample2.txt"
shell = w ...