in reply to Get error code using ShellExecute to open browser

If you just want to know if the file can be accessed, use the head() function from LWP::Simple.

If it returns true, then call ShellExecute.

Or even just system $theUrl; which will also start the user default browser.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
"Too many [] have been sedated by an oppressive environment of political correctness and risk aversion."

Replies are listed 'Best First'.
Re^2: Get error code using ShellExecute to open browser
by athanasia (Pilgrim) on Nov 10, 2008 at 12:46 UTC
    Thanks, this works like a charm!