Returning the result of one program to another.

  • Thread starter Thread starter Patrick Hill
  • Start date Start date
P

Patrick Hill

Hi there,
I have a small little console application that has a function that returns a
string. is there anyway for me to have this string variable returned to
another process? I was doing some research and you can return Exit codes to
the OS but that's only an integer. bassiclly when my program completes
running I want to pass off the value that the function returns to another
program or even the OS (like exit codes) anyone have any idea on how to do
this?
 
Hi there,
I have a small little console application that has a function that returns a
string. is there anyway for me to have this string variable returned to
another process? I was doing some research and you can return Exit codes to
the OS but that's only an integer. bassiclly when my program completes
running I want to pass off the value that the function returns to another
program or even the OS (like exit codes) anyone have any idea on how to do
this?

There's many methods of interprocess communication... To what degree
are you willing to modify the console app?
 
Hi

You could drop the value(s) into a small file like an INI or chuck it into
the registry. You could then use the numeric exit code to let the calling
process know there is data somewhere for it to collect and perhaps delete
when it has got it.

Regards
Dave O.
 
Please do not crosspost questions to both .NET and non-.NET groups. The
*.vb.* groups are for VB6 and earlier. The .NET groups all have "dotnet" in
their names.
 
Karl said:
Herfried, Miro, Dave, et al -- To avoid compounding confusion when answering
inappropriately cross-posted questions like this, may I suggest that we all try to
restrict our responses to the groups focused on the technology used in reply?
Thanks!


And also let's not forget setting Followup-To, for when there is at least /some/ reason
to retain the off-topic groups for just one more posting.



Bob
 
Back
Top