shragi
asked on
calling .exe from console application
I had an .exe which returns a string
i want to test whether it really returns a string...
so how can i do that...
can i create a console application to call that .exe
i need to pass an argument along with that .exe
suppose let us say that the .exe application is mytest.exe
i called it from command line as below...
mytest a b c
it should return abcabcabc
code is written properly and .exe is build
only thing i need to test is i want to call this .exe from a .net console application and handle the return type from this .exe
so can some one send me a sample console application of how to call .exe with parameters which returns a string
i want to test whether it really returns a string...
so how can i do that...
can i create a console application to call that .exe
i need to pass an argument along with that .exe
suppose let us say that the .exe application is mytest.exe
i called it from command line as below...
mytest a b c
it should return abcabcabc
code is written properly and .exe is build
only thing i need to test is i want to call this .exe from a .net console application and handle the return type from this .exe
so can some one send me a sample console application of how to call .exe with parameters which returns a string
But in your applications you can check what args was passed.
What do you mean by, "I had an .exe which returns a string." Console applications typically return integer values indicating a success/failure code. Are you saying you are writing a string out to the Console window? If so, that is not actually returning anything; it is just writing something to your application's STDOUT.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.