def set_shortcut():
startup_path = shell.SHGetPathFromIDList(shell.SHGetSpecialFolderLocation(0,shellcon.CSIDL_STARTUP))
shortcut = pythoncom.CoCreateInstance(shell.CLSID_ShellLink, None, pythoncom.CLSCTX_INPROC_SERVER, \
shell.IID_IShellLink)
shortcut.SetPath(os.getcwd()+'\\Email My PC Launcher.exe')
shortcut.SetWorkingDirectory(os.getcwd())
shortcut.SetIconLocation(os.getcwd()+'\\ui\\images\\Icon.ico',0)
shortcut.QueryInterface(pythoncom.IID_IPersistFile).Save(startup_path+'\\Emai My PC.lnk',0)
#??????????
评论列表
文章目录