A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/100943.html below:

Create/Edit Win32 Shortcuts?

Create/Edit Win32 Shortcuts? 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4