S
Scott B
I have a EXE that spits out text in XML fomat.
I need to call this exe and have it write the XML to a file
I am using the following code:
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.RedirectStandardOutput = false;
p.StartInfo.FileName = "GetData.exe";
p.StartInfo.Arguments = @" -listxml > c:\Output.xml";
p.Start();
My problem is that it never writes the output.xml
If I could rewrite the original application to spit out the data to a file I
would, but I am stuck using it as it stands.
Any ideas>
I need to call this exe and have it write the XML to a file
I am using the following code:
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.RedirectStandardOutput = false;
p.StartInfo.FileName = "GetData.exe";
p.StartInfo.Arguments = @" -listxml > c:\Output.xml";
p.Start();
My problem is that it never writes the output.xml
If I could rewrite the original application to spit out the data to a file I
would, but I am stuck using it as it stands.
Any ideas>