Interprogram Communication
Keywords: Parameters Share Pass Data Between Applications Interprogram Communication
Question:
I can pass parameters from my program to a compiled WB program, can parameters be passed back to my program without creating a file?
Answer:
Here are your options for sharing the information from your Winbatch script back to your application:
- Use a exit code to return a numeric value that the calling program can obtain when your script exits.
- You can place data in a file on disk, perhaps a .INI file if you find that to be convenient.
- You can place data in the registry.
- You can used named pipes or a TCP stream.
- You can place data on the clipboard.
- You can get very fancy and do some very kludgy things to make your script run in a console window such that it writes data to the "stdout" stream, which can then be re-directed thru a console pip to the input ["stdin"] of another program. I don't recommend this approach if you're not very savvy with all the fine nuances of how things work when you start grafting Win32 GUI apps into a console window.
Article ID: W17937
Filename: Interprogram Communication.txt
File Created: 2008:06:25:07:45:18
Last Updated: 2008:06:25:07:45:18