Process Monitering

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top