The following is a modified version of a Java function I borrowed from one of the Javaworld tips to fire up the default browser at a particular URL in Windows:
$url = ...;
$cmd = "rundll32 url.dll,FileProtocolHandler $url";
unless ( fork ) { exec $cmd; }
I'm not on a Windows box now, so I don't know the ramifications of using Perl's fork() under Win32, and I haven't tested this code. Of course, there should be a bit of error checking here and there, but you get the general idea. The tech tips can be found off Javaworld at http://www.javaworld.com/ - just search for 'browser' on the tips page (they also have code for kicking off a browser in Unix).
In reply to Re:
by blackwolf
in thread How do I launch my browser in Win32 to go to a specified URL?
by httptech
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |