2017-03-09 12 views

答えて

0

incognitoモードでChromeを開いて、Restore Sessionエラーが表示されないようにする方法があります。

Dim objExec, objShell, iURL 

Set objShell = CreateObject("WScript.Shell") 
Set objExec = objShell.Exec("tasklist /fi " & Chr(34) & "imagename eq chrome.exe" & Chr(34)) 
If Not InStr(1, objExec.StdOut.ReadAll(), "INFO: No tasks", vbTextCompare) Then 
    objShell.Run "taskkill /f /t /im chrome.exe", 0, True 
End If 

iURL = "www.google.com.au" 
objShell.Run "chrome.exe -incognito " & iURL 

Set objExec = Nothing : Set objShell = Nothing 

WScript.Quit 
+0

ありがとう、私は助けていただきありがとうございます! – theperfectcucumber

関連する問題