P
psathishreddy
Hi
I am writing a small programm which transfers file to a PDA device
using IrDA. I am using irftp.exe to do that.
The problem I have is, I am starting a Process to run irftp.exe. How do
I capture the messages, errors that irftp.exe is displaying or emiting.
Process p = new Process();
p.StartInfo.FileName = "irftp.exe";
p.StartInfo.Arguments = files;
p.StartInfo.UseShellExecute = false;
p.EnableRaisingEvents = true;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.RedirectStandardInput = True;
p.StartInfo.RedirectStandardOutput = True;
p.StartInfo.RedirectStandardError = True;
flag = p.Start();
p.WaitForExit();
I want to capture the errors the Process p raises.
satish
I am writing a small programm which transfers file to a PDA device
using IrDA. I am using irftp.exe to do that.
The problem I have is, I am starting a Process to run irftp.exe. How do
I capture the messages, errors that irftp.exe is displaying or emiting.
Process p = new Process();
p.StartInfo.FileName = "irftp.exe";
p.StartInfo.Arguments = files;
p.StartInfo.UseShellExecute = false;
p.EnableRaisingEvents = true;
p.StartInfo.CreateNoWindow = true;
p.StartInfo.RedirectStandardInput = True;
p.StartInfo.RedirectStandardOutput = True;
p.StartInfo.RedirectStandardError = True;
flag = p.Start();
p.WaitForExit();
I want to capture the errors the Process p raises.
satish