Creating internet shortcuts
Roger Upole
rupole at hotmail.com
Sun Oct 9 23:08:45 EDT 2005
Pythoncom doesn't directly support the necessary interfaces,
but you can use the Shell COM interfaces to create them.
import win32com.client
wsh=win32com.client.gencache.EnsureDispatch('wscript.shell')
s=wsh.CreateShortcut('c:\\python.url')
s.TargetPath='www.python.org'
s.Save()
hth
Roger
"Richard Townsend" wrote:
> I've seen the python.faqts page:
> http://www.faqts.com/knowledge_base/view.phtml/aid/4475/fid/538 on how to
> create windows shortcuts using Python.
>
> Does anyone know if this be adapted to create internet shortcuts on
> windows? (as used for Favorites).
>
> Thank you,
>
> --
> Richard
----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
More information about the Python-list
mailing list