Create/Edit Win32 Shortcuts?

Don Tuttle tuttledon at hotmail.com
Fri Apr 20 11:42:23 EDT 2001


[Gerhard Häring]
>
> I'll think about polishing it, but for now I have only had a quick
> glance over it and put some comments here and there. You can download it
> here (source and binary prebuilt for Python 2.1):
> http://home.t-online.de/home/err666/VitaminP/index.html
>
> You can use it like this:
>
> import WinSetupUtil
>
> shortcut = WinSetupUtil.Shortcut()
> shortcut.setShortcutName( "c:/tmp/TestShortcut.lnk" )
> shortcut.setLinkSource( "c:/WINNT/Notepad.exe" )
> shortcut.setIconFileName( "c:/WINNT/Explorer.exe" )
> shortcut.setIconNumber( 0 )
> shortcut.save()

Nice!  I really like where you're headed with this. I'm sending you some
additional info you might find helpful in expanding it's functionality.

> PS: I really don't think it belongs in the library's os module. A
> separate module like _winshortcut would perhaps have a chance to get in,
> like the _winreg we already have.

Noted.

Don








More information about the Python-list mailing list