Arguments property. You have to:
1. set RedirectStandardOutput to true
2. set UseShellExecute to false
3. start process
4. assign myProcess.StandardOutput to a streamreader
and do with it what you will, I read it in to a string
and then wrote that to an output file.
-----Original Message-----
Can anyone tell me why this code won't produce an output
file? From a Dos prompt it works. Thanks.
Process myProcess = new Process();
myProcess.StartInfo.FileName="C:\\mysql\\bin\\mys qldump.e xe";
myProcess.StartInfo.Arguments="--opt test >
C:\\mysql\\bin\\test.out";
myProcess.StartInfo.WorkingDirectory="C:\\mysql\\ bin\\";
myProcess.Start();
.