I have an exe that I need to call from my C # Program with two arguments (PracticeId, ClaimId)
For example: Suppose I have a test.exe application whose functionality is to make a request in accordance with these two arguments.
In cmd, I usually issued the following command:
test.exe 1 2
And it works great and does its conversion work.
But I want to accomplish the exact same thing using my C # code. I am using the following code example:
Process compiler = new Process(); compiler.StartInfo.FileName = "test.exe" ; compiler.StartInfo.Arguments = "1 2" ; compiler.StartInfo.UseShellExecute = true; compiler.StartInfo.RedirectStandardOutput = true; compiler.Start();
When I try to call test.exe using the above code, it cannot do its job of creating a txt file claim.
Where is the problem with this? Whether the problem is a thread or not, I don't know.
Can someone please tell me what I need to change in the above code?
bjh hans Mar 31 '10 at 4:06 2010-03-31 04:06
source share