title: Is it possible to embed a bat file in .exe and use it with the Process class?
body: <p>I've created a batch file that is being used with a Process.  I currently just have the application pointing to a directory on my local machine.</p>
  
  <p>Rather than having to bundle my exe with this batch, I would like to just embed it as a resource so that it will be contained in the exe.  Is this possible with a batch file?</p>
  
  <pre><code>ProcessStartInfo startInfo = new ProcessStartInfo()
  
  startInfo.FileName = "c:\test\batchFile.bat";
  
  // set up and execute batch file with various arguments
  </code></pre>
  
  <p>I've added the batch file to my solution, and added it as a "resource" to my project file.  I'm not entirely sure this is the way to go, or how to access this in my project.</p>