I'm a working on a winform app which took arguments from cmd (or any other command sending program) at run time. I'm successful in getting args at run time but I've to return the status as a string from where the command was executed without exiting the app.
Lets say, I execute the php script like to give args to my running app like:
<?php
$output = shell_exec('MyApp args');
echo "<pre>$output</pre>";
?>
Now, i want to return string value to $output variable. Is there any way to return the value from c# winform app.