I\'m trying to write a bit of VBScript to open a browser on a specific webpage. Ultimately this webpage would be unique per script. At the moment I have the following code w
Can you pl insert "Call" prefix to "objShell.ShellExecute"
Dim objShell
Set objShell = CreateObject("Shell.Application")
iURL = "www.google.com"
Call objShell.ShellExecute("C:\Program Files (x86)\Google\Chrome\Application\chrome.exe", iURL, "", "", 1)
For IE:
'Call objShell.ShellExecute("iexplore.exe", iURL, "", "", 1)
For more info below code also works,
Dim objShell
Set objShell = CreateObject("Shell.Application")
chrome:
iURL = "www.google.com"
'objShell.ShellExecute "chrome.exe", iURL, "", "", 1
ie:
'objShell.ShellExecute "iexplore.exe", iURL, "", "", 1