in reply to How to start default browser on Windows?
If you can always be sure that the browser will be IE, then you can use:
system( "iexplore.exe http://myurl.com" );
Failing that, you should be able to lookup in the registry the default association of .html files. I think it's this:
[HKEY_CLASSES_ROOT\htmlfile\shell\open\command]
Otherwise, have a play with Regmon and see what keys are being queried when the default browser is started. You can then query the same keys in Perl and invoke that browser directly.
Update: Ah, jasonk has a much more simpler solution. But it's much more fun to have an purely Perl approach ;)
|
|---|