wolfbartels Posted May 7, 2009 Posted May 7, 2009 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?
Hawkwing Posted May 7, 2009 Posted May 7, 2009 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.
Authenticity Posted May 7, 2009 Posted May 7, 2009 (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 May 7, 2009 by Authenticity
wolfbartels Posted May 8, 2009 Author Posted May 8, 2009 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-fileThanks, that is exactly what I was looking for!
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now