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

VBScript to open, run and close Tor browser

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

Dim objShell
Set objShell = WScript.CreateObject("WScript.Shell")
objShell.Exec("""C:\Users\Name\Desktop\Tor\Tor Browser\Browser\Tor.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