I want to execute a batch file from c#.net code. A batch file may take unknown number of the command line arguments. I want to pass these arguments from c# code.
How this can be achieved through c#?
Edit : I have written following code
ProcessStartInfo psi = new ProcessStartInfo(filePath);
psi.WindowStyle = ProcessWindowStyle.Hidden;
psi.CreateNoWindow = true;
psi.Arguments = "some value";
Process proc = new Process();
proc.StartInfo = psi;
proc.Start();
Look at http://www.dotnetperls.com/process-start-vbnet for a good introduction. Specifically, see the "Run executable" example at the bottom.
Here is the search query I used http://www.bing.com/search?q=command+line+parameters+process+start, if you need more examples.