Create/Edit Win32 Shortcuts?

Don Tuttle tuttledon at hotmail.com
Thu Apr 19 17:22:50 EDT 2001


"waldekO" <osuchw at ecn.ab.ca.remove_me> wrote in message
news:9UtD6.2758$h4.54829 at jekyl.ab.tac.net...
> What I used to do is to create Shell object using COM package and utilize
> its methods to do the job.
> for example:
> from win32com.client import Dispatch
> >>> shell = Dispatch('WScript.Shell')
> >>> lnk = shell.CreateShortcut('c:\\windows\\desktop\calc.lnk')
> >>> lnk.TargetPath = 'c:\\windows\\calc.exe'
> >>> lnk.Save()
> For details of all parameters refer to Microsoft Windows Scripting Host
> documentation.

Thanks waldekO.  I'm familiar with this. I was hoping Python itself had a
method as simple as this for working with shortcuts, but apparently not.

Don






More information about the Python-list mailing list