title: How to close a file in C# that was opened with Process.Start
body: <p>I have files in a folder that have been encrypted and need to be opened with notepad in order to be decrypted. In my program I'm opening the files using:</p>
  
  <pre><code>System.Diagnostics.Process.Start("path\filename.extension.extenstion");
  </code></pre>
  
  <p>This works perfectly for opening the individual files in Notepad. What I want to do is close the notepad application after it opens. Is there a way to kill the process or close the app window in C#? Or perhaps simply close all Notepad windows once all of the files have been opened and decrypted?</p>