Problem creating a shorcut
Tim Golden
mail at timgolden.me.uk
Fri May 16 10:07:31 EDT 2008
Duncan Booth wrote:
> It's not too hard to get the required command line from the registry:
>
> import _winreg
> print _winreg.QueryValue(_winreg.HKEY_CLASSES_ROOT,
> 'FirefoxURL\shell\open\command')
>
> and of course it throws an exception if firefox isn't installed.
>
> Then just replace %1 with the url to get the actual command you need.
That's neat. You learn something new...
TJG
More information about the Python-list
mailing list