Sign in to follow this  
Followers 0
wolfbartels

how to launch any browser

4 posts in this topic

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?

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

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

Edit: Example:

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

Edited by Authenticity

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0