For example i have this code:
Process proc = new Process();
proc.EnableRaisingEvents = true;
proc.StartInfo.UseShellExecute = false;
proc.StartInfo.FileName
The easiest solution is to add the bat file to the project in Visual Studio. To do this do the next steps:
This will copy the bat fill to the output directory of the build. If you then distribute your program you can send the output directory. This will not prevent the user form deleting the bat file of course.
The other option would be to embed the batch file as a resource in your project and use it from there.