Você está na página 1de 2

taskkill / f /im wscript.

exe

Dim contador, segundos, tag_status tag_status = 0 contador = 0 SmartTags("tag_status") = tag_status segundos = 90000 For contador = 0 To segundos SmartTags("segundos") = contador Next If contador > segundos Then tag_status = 1 SmartTags("tag_status") = tag_status End If

Dim contador, tag_status set wshshell = WScript.CreateObject("WScript.Shell") WShshell.Run("CHOICE /T 2 /C SNC /CS /D S") Wscript.Echo contador set wshshell = WScript.CreateObject("WScript.Shell") WShshell.Run("taskkill /f /im wscript.exe")

Dim contador, tag_status if tag_status = 1 THEN set wshshell = WScript.CreateObject("WScript.Shell") WShshell.Run("taskkill /f /im wscript.exe") END IF set wshshell = WScript.CreateObject("WScript.Shell") if WShshell.Run("CHOICE /T 2 /C SNC /CS /D S") > COMPLETE THEN Wscript.Echo "Tempo = 2 segundos" ELSE Wscript.Echo "Tempo = 3 segundos" END IF

Você também pode gostar