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();