Public Function SetupBrowser(Browser)
StartURL = "http://localhost/*****"
IF Browser ="IE" Then
Set MyBrowser = CreateObject("InternetExplorer.Application")
MyBrowser.Visible = True
While MyBrowser.busy
Wend
MyBrowser.Navigate StartURL
End If
If Browser ="FireFox" Then
SystemUtil.Run "firefox.exe", StartURL
End If
End Function
Public Function CloseBrowser(Browser)
IF Browser ="IE" Then
MyBrowser.Quit
End If
If Browser ="FireFox" Then
systemutil.closeprocessbyname "firefox.exe"
End If
End Function作者: walker1020 时间: 2007-9-5 23:59
非常感谢楼主的共享!