title: Kill all processes besides my program in C#
body: <p>No, this is not Malware. I'm trying to make a PC helper tool that kills all tasks that are non-Windows processes, but in the process, it kills itself.</p>
  
  <p>It's a console application, so I tried disincluding cmd.exe to kill, but it still kills my program.</p>
  
  <p>Is there a way kind of like this?</p>
  
  <pre><code>if (process.ToString == this.ExecutableName)
  </code></pre>