1
我想通过python pywin32创建快捷方式,但代码无效。如何通过python创建url快捷方式
以下是我的代码,我不知道为什么我不能创建它的快捷方式! 请帮我查一下吧,谢谢你的帮忙〜
#-*- coding:utf-8 -*-
import win32com.client
bmurl = unicode(r"http://www.pystack.org/","utf8")
bmpath = unicode(r"C:\Users\moose\Desktop\bm\blog.url","utf8")
ws = win32com.client.Dispatch("wscript.shell")
scut = ws.CreateShortcut(bmpath)
scut.TargetPath=bmurl
scut.Save
right,thanks for your help – bspeng922 2013-03-21 06:03:41