Re: [python-win32] Problem creating a shortcut

2008-05-16 Thread Mike Driscoll
Tim Golden wrote: Sorry, missed this one going through. Looks like Roger's hit the nail on the head, though. Bizarre behaviour by the IShellLink interface: I can't find any kind of reference to this but I assume that since the Path attribute of the link should *only* contain an executable, there

Re: [python-win32] Problem creating a shortcut

2008-05-16 Thread Mike Driscoll
Tim, Mike Driscoll wrote: I've had this niggling issue from time to time. I want to create a shortcut on the user's desktop to a website that specifically loads Firefox even if Firefox is not the default browser. ... shortcut = shell.CreateShortCut(userDesktop + '\\MyShortcut.lnk') shortcut.Tar

Re: [python-win32] Problem creating a shortcut

2008-05-16 Thread Mike Driscoll
Roger, Mike Driscoll wrote: Hi, I've had this niggling issue from time to time. I want to create a shortcut on the user's desktop to a website that specifically loads Firefox even if Firefox is not the default browser. I usually use COM as it allows very specific settings of the shortcut, such

Re: [python-win32] Problem creating a shortcut

2008-05-16 Thread Tim Golden
Sorry, missed this one going through. Looks like Roger's hit the nail on the head, though. Bizarre behaviour by the IShellLink interface: I can't find any kind of reference to this but I assume that since the Path attribute of the link should *only* contain an executable, there's no need for the q

Re: [python-win32] Problem creating a shortcut

2008-05-15 Thread Mark Hammond
Tim wrote: > Plus, the "Program Files" path name is localized on > the international versions of Windows. Obviously Tim is correct that you can't assume FF is in Program Files, but if you really did want the Program Files dir for other reasons, the way to get it is: >>> from win32com.shell impor

Re: [python-win32] Problem creating a shortcut

2008-05-15 Thread Tim Roberts
Mike Driscoll wrote: I've had this niggling issue from time to time. I want to create a shortcut on the user's desktop to a website that specifically loads Firefox even if Firefox is not the default browser. ... shortcut = shell.CreateShortCut(userDesktop + '\\MyShortcut.lnk') shortcut.Targetpat

[python-win32] Problem creating a shortcut

2008-05-15 Thread Roger Upole
Mike Driscoll wrote: Hi, I've had this niggling issue from time to time. I want to create a shortcut on the user's desktop to a website that specifically loads Firefox even if Firefox is not the default browser. I usually use COM as it allows very specific settings of the shortcut, such as the

[python-win32] Problem creating a shortcut

2008-05-15 Thread Mike Driscoll
Hi, I've had this niggling issue from time to time. I want to create a shortcut on the user's desktop to a website that specifically loads Firefox even if Firefox is not the default browser. I usually use COM as it allows very specific settings of the shortcut, such as the Working Directory and