You would like to include the .bat file as an embedded resource. Therefore, in Visual Studio, you open the properties in a file and select "Embedded Resource" for "Build Actions."
Now for the interesting part .... in your application, you will want to extract the file and write it to disk before execution using the GetManifestResourceStream method of the GetManifestResourceStream object. This is a bit complicated because you need to pass the resource name to the method, and that name will be based on the assembly namespace, plus the path (so if your MyProject project and your file are in Resources\MyBat.bat , then the resource name will be MyProject.Resources.MyBat.bat ... at least I think that's right)
Actually there is an existing SO question on how to do this here , and has a much nicer code sample than the one I was about to hack. :)
source share