Advertisement
Guest User

Close All Browser v2

a guest
Mar 20th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ' ============================
  2. ' Title : Close All Browser v2
  3. ' Language : VBScript
  4. ' Author : A.Kilya
  5. ' 19/03/2017 16:00 PM
  6. ' ============================
  7.  
  8. Dim WshShell, oExec, result
  9. Set WshShell = CreateObject("WScript.Shell")
  10. result = Msgbox("Are you sure to close all browser ?",vbYesNo+vbCritical, "Alert")
  11. ' condition, Are you sure !
  12. If result = vbNo Then
  13.      Wscript.Quit(0)
  14. End If
  15.  
  16. WScript.Sleep 1000 ' Wait period in milliseconds
  17. Set oExec = WshShell.Exec("taskkill /f /im ""chrome.exe"" /t")
  18. Set oExec = WshShell.Exec("taskkill /f /im ""iexplore.exe"" /t")
  19. Set oExec = WshShell.Exec("taskkill /f /im ""firefox.exe"" /t")
  20. Set oExec = WshShell.Exec("taskkill /f /im ""Safari.exe"" /t")
  21. Set oExec = WshShell.Exec("taskkill /f /im ""opera.exe"" /t")
  22. Set oExec = WshShell.Exec("taskkill /f /im ""tor.exe"" /t")
  23. Set oExec = WshShell.Exec("taskkill /f /im ""torch.exe"" /t")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement