programmatically terminate windows explorer

  • Thread starter Thread starter John
  • Start date Start date
J

John

Is that possible to programmatically terminate windows explorer?

Thanks.
 
John said:
Is that possible to programmatically terminate windows explorer?
Yes.

I'm not going to tell you why unless you explain why you'd want to do that.
It's massively rude to the user. There's almost certainly a better way of
achieving whatever it is you want to achieve.
 
Yes, you can use the System.Diagnostics.Process class to obtain an instance
specific to Explorer.exe (if it is running) and call the Kill() method. Note
that your process will have to have equal or higher privileges in order to
terminate it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top