Python生成快捷方式
import os, winshelldesktop = winshell.desktop()
path = os.path.join(desktop, "myNeatWebsite.url")
target = "http://www.google.com/"
shortcut = file(path, 'w')
shortcut.write('\n')
shortcut.write('URL=%s' % target)
shortcut.close()
页:
[1]