First of all, you should write this in a bat
file and save it as a like bat.bat
.
cd \
cd C:\Users\Sara Mamdouh\Desktop\New folder
exit
You can use Process.Start()
method after that.
Starts a process resource by specifying the name of an application and
a set of command-line arguments, and associates the resource with a
new Process component.
Process p = new Process();
ProcessStartInfo ps = new ProcessStartInfo();
ps.FileName = "path to bat.bat";
ps.RedirectStandardInput = true;
ps.RedirectStandardOutput = true;
ps.UseShellExecute = false;
p.StartInfo.Arguments = "hvite -T 01 -C hcon.con -w net dict hmm_list Ann.wav";
p.StartInfo = ps;
p.Start();
string output = p.StandardOutput.ReadToEnd();