Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: How to start default browser on Windows?

by bunnyman (Hermit)
on Aug 11, 2005 at 14:52 UTC ( [id://482982]=note: print w/replies, xml ) Need Help??


in reply to How to start default browser on Windows?

The right way to do it is to go through the Windows Shell. This will ensure you get the default browser without having to do any poking around in the registry.

	use Win32::FileOp qw(ShellExecute);
	ShellExecute('http://...');

(Note: Untested. Win32::FileOp is on CPAN.)

  • Comment on Re: How to start default browser on Windows?

Replies are listed 'Best First'.
Re^2: How to start default browser on Windows?
by Scott7477 (Chaplain) on Apr 18, 2006 at 18:58 UTC
    This works perfectly in ActiveState 5.8.7.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://482982]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-18 00:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found