import winshell
import os
desktop = winshell.desktop()
shortcut_path = os.path.join(desktop, "bfw.lnk")
shortcut = winshell.shortcut(shortcut_path)
shortcut.path = r"C:\Program Files\Bfw\app.exe"
shortcut.write()
print("Shortcut created on Desktop") 网友回复


