Wednesday, 13 July 2011

Different way to Open the website or application using VB script

'Method 1 using SystemUtil

SystemUtil.Run "iexplore.exe","www.google.com"

'Method2 using without SystemUtil

Option Explicit
Dim a,b
a="www.google.com"
Set b=Createobject("InternetExplorer.Application")
b.visible=True
b.navigate a

'Method3 using Invoke

InvokeApplication "C:\Program Files\Internet Explorer\Iexplore.exe http://www.google.com"

'Method4 using Shall Script

Dim wsh
Set wsh = CreateObject("WScript.Shell")
wsh.Run "iexplore.exe www.google.com",3 , False
Set wsh = Nothing

No comments:

Post a Comment