How can I terminate process using vbscript. PLEASE NOTE, I need to terminate process that runs under windows 64-bit environment as native 64 (not using select * from win_32_
Dim shll : Set shll = CreateObject("WScript.Shell") Set Rt = shll.Exec("Notepad") : wscript.sleep 4000 : Rt.Terminate
Run the process with .Exec.
.Exec
Then wait for 4 seconds.
After that kill this process.