Email My PC.py 文件源码

python
阅读 27 收藏 0 点赞 0 评论 0

项目:Email_My_PC 作者: Jackeriss 项目源码 文件源码
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)

#??????????
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号