>I am using the ShellExecute api in a VFP Windows application. When a user press a button in my WinForm, I call ShellExecute and pass a URL to open a browser and display the website/page.
>
>This works fine except that ShellExecute will use either any open browser to display the page or open the default browser to display the page if a browser isn't open already.
>
>Is there a way to force ShellExecute to always open a new browser to display the page and ignore any open browser? Or is there a better way to call IE and pass it a URL to display?
>
>Thanks,
>
>Jerry
Jerry,
If you use ShellExecut to invoke iexplore.exe directly, passing it the URL as an argument, it will always force creation of a new instance. The path to iexplore.exe can be found in the registry under this key:
HKLM\Software\Microsoft\Windows\CurrentVersion\App Paths\IEXPLORE.EXE
Mike