Jump to content

Recommended Posts

Posted

In a script I open a given HTML-file using:

Run(@ProgramFilesDir & '\Internet Explorer\iexplore.exe ' & $galpfad & '\' & $html, $galpfad, @SW_MAXIMIZE)

This works fine, but what if the user of the script uses Firefox, Opera or even some other browser?

Is there a way for the script to use any default browser?

Posted

There is probably somewhere in the registry that it stores default browser.

The Wheel of Time turns, and Ages come and pass, leaving memories that become legend. Legend fades to myth, and even myth is long forgotten when the Age that gave it birth comes again.

Posted

ShellExecute() with the url only should open the new page in the user's default browser.

Edit: Example:

ShellExecute('http://www.google.com')

ShellExecute($galpfad & '\' & $index) where $index is a HTML-file

Thanks, that is exactly what I was looking for!

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...