title: How to run embedded batch file using process.start in c#
body: <p>I add a batch file. let's say "batch.cmd" in my WPF application. I right click my project and add existing item, add my batch file in the project. I selected my batch file and change Build Action to Embedded Resource. After I build it, I saw this file add in project.</p>
  
  <p>Now I need to start my batch file in my code, I tried <code>Process.Start("batch.cmd")</code>, it doesn't work, I did like:</p>
  
  <pre><code>Process p = new Process();
  p.StartInfo.FileName = "batch.cmd";
  p.Start();
  </code></pre>
  
  <p>It doesn't work either. How can i let my code understand this batch is existing inside my project and somewhere in the \bin. I don;t want to hard code it because the Path will always change.</p>
  
  <p>Thanks in advanced.</p>