G
Gidi
Hi,
My C# windows application is running another process which is a c (language)
binary.
the c binary prints output to the screen which i want to catch in my C#
program.
I know how to run the binary with the Process class, what's i'm missing now,
is that after each output print in my binary i want to wait till my C#
program will tell the binary to continue.
I guess i should use wait() or something like that in my c program, and free
it from my C# program.
how can it be done?
here is my process initialization:
c_Process = new Process();
ProcessStartInfo psI = new ProcessStartInfo();
psI.FileName = @"D:\gidi.bat"
psI.UseShellExecute = false;
psI.RedirectStandardInput = true;
psI.RedirectStandardOutput = true;
psI.RedirectStandardError = true;
psI.CreateNoWindow = true;
c_Process.StartInfo = psI;
c_Process.Start();
Thanks,
Gidi.
My C# windows application is running another process which is a c (language)
binary.
the c binary prints output to the screen which i want to catch in my C#
program.
I know how to run the binary with the Process class, what's i'm missing now,
is that after each output print in my binary i want to wait till my C#
program will tell the binary to continue.
I guess i should use wait() or something like that in my c program, and free
it from my C# program.
how can it be done?
here is my process initialization:
c_Process = new Process();
ProcessStartInfo psI = new ProcessStartInfo();
psI.FileName = @"D:\gidi.bat"
psI.UseShellExecute = false;
psI.RedirectStandardInput = true;
psI.RedirectStandardOutput = true;
psI.RedirectStandardError = true;
psI.CreateNoWindow = true;
c_Process.StartInfo = psI;
c_Process.Start();
Thanks,
Gidi.