WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

System_Diagnostics

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Kill a Process

 Keywords: System.Diagnostics.Process Kill Close Stop WinClose GetProcessesByName 

ObjectClrOption("use","System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089")
objProcess = ObjectClrNew("System.Diagnostics.Process")

strProcName = "iexplore"
aProcs = objProcess.GetProcessesByName(strProcName)

nProcMax =  ArrInfo(aProcs, 1) - 1
For  i = 0 To  nProcMax
   aProcs[i].Kill
   aProcs[i].Dispose()
Next

Article ID:   W17817
Filename:   Kill a Process.txt
File Created: 2014:03:17:09:06:36
Last Updated: 2014:03:17:09:06:36