PDA

View Full Version : Killing process "explorer.exe" in VB.



bot
03-06-2011, 08:46 PM
Is there a way to kill the process "explorer.exe" in Visual Basic.NET?

inphinity
03-06-2011, 09:05 PM
p = System.Diagnostics.Process.GetProcessesByName("explorer");
p.kill();


of course, given there's potential for multiple processes called explorer.exe you may need to grab the returned process list as an array and step through em.

bot
03-06-2011, 10:59 PM
p = System.Diagnostics.Process.GetProcessesByName("explorer");
p.kill();


of course, given there's potential for multiple processes called explorer.exe you may need to grab the returned process list as an array and step through em.

Thanks. God, I need to learn how Google properly :derp:

mikebartnz
04-06-2011, 04:12 AM
To be honest I would far sooner learn how to kill VB.
Having written programs in Turbo Pascal/Delphi that have run from Win95 through and tried to get VB programs even doing one jump is too much effort.