Re: Creating internet shortcuts

2005-10-10 Thread Richard Townsend
On Sun, 9 Oct 2005 23:08:45 -0400, Roger Upole wrote: > 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:\\pyt

Re: Creating internet shortcuts

2005-10-09 Thread Roger Upole
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