Quoting Glenn Linderman <[EMAIL PROTECTED]>:

> On approximately 2/16/2005 1:43 PM, came the
> following characters from 
> the keyboard of Robert May:
> > 
> > Glenn Linderman wrote:
> > 
> >>
> >> Would it not be possible to just use
> >>
> >>    system qq{start whatever_command};
> >>
> >> instead of ShellExecute?  What is the
> advantage of ShellExecute?
> > 
> > 
> > That seems to work fine on my Win98 system. 
> It takes a bit longer to 
> > return control to the GUI (but only just
> noticable), and the return 
> > values are less well defined (I can't find any
> info in the quick search 

> And are you launching the default browser?  Or
> the .html file via an 
> assumed association?  Or???  The syntax for
> launching the default 
> browser can be tricky to get right for all
> browsers, although it is 
> possible.  Anyway, you should test on at least a
> couple non-IE browsers 
> too, for completeness.

I've added ShellExecute directly to Win32::GUI - it 
has several advantages over using the perl system 
command. It is much more flexible and powerful in 
terms win32 functionality - it is also much faster (in 
returning to the calling script). It also has the 
benefit (in this example) that it is browser 
independent - it uses the registry to determine the 
which browser to use.

Cheers,

jez.

Reply via email to