Movatterモバイル変換


[0]ホーム

URL:


Create/Edit Win32 Shortcuts?

Don Tuttletuttledon 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 someadditional 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-listmailing list

[8]ページ先頭

©2009-2025 Movatter.jp