dump_link.py 文件源码

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

项目:Email_My_PC 作者: Jackeriss 项目源码 文件源码
def DumpLink(fname):
    shellLink = pythoncom.CoCreateInstance(shell.CLSID_ShellLink, None, pythoncom.CLSCTX_INPROC_SERVER, shell.IID_IShellLink)
    persistFile = shellLink.QueryInterface(pythoncom.IID_IPersistFile)
    persistFile.Load(fname,STGM_READ)
    shellLink.Resolve(0, shell.SLR_ANY_MATCH | shell.SLR_NO_UI)
    fname, findData = shellLink.GetPath(0)
    print "Filename:", fname, ", UNC=", shellLink.GetPath(shell.SLGP_UNCPRIORITY)[0]
    print "Description:", shellLink.GetDescription()
    print "Working Directory:", shellLink.GetWorkingDirectory()
    print "Icon:", shellLink.GetIconLocation()
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号