Elipse Knowledgebase



KB-38178: Closing a computer's process via E3

Question:

Can I close a computer's process via E3?

Solution:

To do so, you must write a script. For example:

ProcessName = "notepad.exe"
PID = 2536
Set service = GetObject("winmgmts:\\.\root\cimv2")
'Closes the process via PID (Process ID)
'Set results = service.ExecQuery(" Select * from Win32_Process where ProcessId ='" & PID & "'")
'Closes by the process' name
Set results = service.ExecQuery(" Select * from Win32_Process where Name ='" & ProcessName & "'")
 
for each obj in results
    obj.Terminate()
    'exit sub
next



Related Articles

No related articles were found.

Attachments

No attachments were found.

Visitor Comments

No visitor comments posted. Post a comment

Post Comment for "KB-38178: Closing a computer's process via E3"

To post a comment for this article, simply complete the form below. Fields marked with an asterisk are required.

   Name:
   Email:
* Comment:
* Enter the code below:

 

Article Details

Last Updated
16th of July, 2010

Autor
Renan de Rossi

Would you like to...

Print this page  Print this page

Email this page  Email this page

Post a comment  Post a comment

 Subscribe me

Subscribe me  Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF


User Opinions

No users have voted.

How would you rate this answer?




Thank you for rating this answer.

Continue