c# - Kill some processes by .exe file name -


How can I delete some active processes by searching their .exe filenames in C # .net or C ++ Am I

quick answer:

  foreach (process process in GETProcessesByName ( "Whatever")} {Process.Kill (); }  

(Exclude .exe by process name)


Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -