2014-01-09 50 views

回答

1
@echo off 

START chrome.exe javascript:document. "http://google.com" 
w32tm /stripchart /computer:localhost /period:1 /dataonly /samples:30 >nul 2>&1 
taskkill /im chrome.exe /f 

exit 
0

您可以使用從Windows Sysinternals的工具pskill

要獲取暫停使用timeout 30

事情是這樣的:

@echo off 
START chrome.exe javascript:document. "http://google.com" 
... more stuff here ... 
TIMEOUT 30 
PSKILL chrome.exe 
相關問題