Ac3Dc3
9th March 2006, 10:03
Hi
I'm trying to read the standard output from ProjectX from a .Net application. ProjectX is a Java application and regular (c sharp)
Process p = new Process();
StreamWriter sw;
StreamReader sr;
StreamReader err;
ProcessStartInfo psI = new ProcessStartInfo("cmd");
psI.UseShellExecute = false;
psI.RedirectStandardInput = true;
psI.RedirectStandardOutput = true;
psI.RedirectStandardError = true;
psI.CreateNoWindow = true;
p.StartInfo = psI;
p.Start();
sw = p.StandardInput;
sr = p.StandardOutput;
err = p.StandardError;
doesn't seem to work. Does anyone know how I can capture this info without using executable wrappers? Or if you just have general advice about launching java apps from .Net.. : )
Ac3Dc3
I'm trying to read the standard output from ProjectX from a .Net application. ProjectX is a Java application and regular (c sharp)
Process p = new Process();
StreamWriter sw;
StreamReader sr;
StreamReader err;
ProcessStartInfo psI = new ProcessStartInfo("cmd");
psI.UseShellExecute = false;
psI.RedirectStandardInput = true;
psI.RedirectStandardOutput = true;
psI.RedirectStandardError = true;
psI.CreateNoWindow = true;
p.StartInfo = psI;
p.Start();
sw = p.StandardInput;
sr = p.StandardOutput;
err = p.StandardError;
doesn't seem to work. Does anyone know how I can capture this info without using executable wrappers? Or if you just have general advice about launching java apps from .Net.. : )
Ac3Dc3