Question Locked

VB Script - Help!

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am looking to change the following script to look in another location if it cannot find C:\Program Files\Internet Explorer\iexplore.exe. Norwegien & Swedish versions of Windows use the following location for IE c:\program\internet explorer\iexplore.exe.
The script I have is as follows:

Sub ZMain()

Dim MyURL, ret

MyURL = GetString (15, 46, 12)

ret = Shell ("C:\Program Files\Internet Explorer\iexplore.exe " & MyURL, 1)

End Sub

Any help would be greatly appreciated.

2 replies

by tony hopkinson

which it almost certainly is.

ret = Shell(MyURL, 1)
will automatically run up the default browser where ever it is.

I use FF and I'd bin your software on the spot if it overrode ny browser preference.

This discussion is closed to new replies.