views:

1951

answers:

2

I've got an app that my client wants to open a kiosk window to ie on startup that goes to their corporate internet. Vb isn't my thing but they wanted it integrated into their current program and I figured it would be easy so I've got

Shell ("explorer.exe http://www.corporateintranet.com")

and command line thing that needs to be passed is -k

Can't figure out where in the hell to drop this to make it work. Thanks in advance! :)

+2  A: 

If you would like to use -k, you will probably want to call iexplore.exe instead of explorer.exe.

Greg Hewgill
Haha thanks for that, one step closer. But start run: "iexplore -k http://www.corporateintranet.com"works but when tried in the project I'm getting a file not found runtime error now
I think the Start/Run menu has a special exception for knowing where iexplore.exe is located (for backwards compatibility). In your program you may need to specify the full path to iexplore.exe.
Greg Hewgill
+2  A: 

Shit got it, not the most elegant but it'll do

Shell ("C:\Program Files\Internet Explorer\iexplore.exe -k http://www.corporateintranet.com")
You shouldn't have to hard code the path for iexplore.exe; the system should know where to find it. Indeed, hard-coding the path could actually break your program in the future -- 64-bit OSes may place apps in different directories than you're used to.
John Rudy