+
110
-

回答

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")

网友回复

我知道答案,我要回答