Hi Ranjeet,
Here is solution for taking output of executed command
private void button1_Click(object sender, RoutedEventArgs e)
{
System.Diagnostics.ProcessStartInfo processstart = new System.Diagnostics.ProcessStartInfo("cmd", "/c " + "dir");
processstart.RedirectStandardOutput = true;
processstart.Argument ="";
processstart.UseShellExecute = false;
processstart.CreateNoWindow = true;
System.Diagnostics.Process proc = new System.Diagnostics.Process();
proc.StartInfo = processstart;
proc.Start();
textBlock1.Text = proc.StandardOutput.ReadToEnd();
}
here i have chosen "dir"(simple dos command)and took output to textBlock
you can have string here for take a out put.
you can send parameter to command using processstart.Argument = "//here will be parameter";
do let me know if it works for you
i guess you can read from excel file...
else i will update that also.