VBScript打开,运行和关闭Tor浏览器



请编辑此VBScript以打开,运行和关闭Tor浏览器:

Dim objShell
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Exec("""C:UsersNameDesktopTorTor BrowserBrowserTor.exe""/http://www.google.com")
Set objShell = Nothing
WScript.Sleep 20000
Set objShell = objshell.Exec("taskkill /fi ""imagename eq Tor.exe""")

打开并运行,但不关闭。

您应该尝试这样做:

Dim objShell
Set objShell = CreateObject("WScript.Shell")
objShell.Run "Taskkill /F /IM Tor.exe",0,True

最新更新