Link to home
Start Free TrialLog in
Avatar of shragi
shragiFlag for India

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
Avatar of Jorge Paulino
Jorge Paulino
Flag of Portugal image

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
Avatar of Carlos Villegas
Carlos Villegas
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial