I see a lot of people ask how to launch Internet Explorer to a specific web page. Didn't find anything in the CodeBank so I thought I'd post the way I've been doing it. The module contains some additional stuff for Windows Registry access as well.
Basic operation would be to type LaunchIE(strURL). LaunchIE is the function and strURL would be a string with a URL in it, pretty self explanatory. Anyways, this module will access the registry for IE's path, then shell Internet Explorer and navigate to the specified site. This particular way to launch IE also creates each IE as a separate process, which people may or may not find useful. If you are doing anything where you need separate instances for separate user sessions this is will work. There are about a million different ways to do this and this is just one.
The second one below is basically the same thing as above except it uses ShellExecute. Only difference is that it uses the default browser which could be anything (FrontPage, Word, etc.) and it does not create separate instances of the browser.
Questions, comments, concerns? Leave a message.
Last edited by bat711; May 31st, 2005 at 04:18 PM.