Click to See Complete Forum and Search --> : Passing/Retrieving Parameters from/to executable file


John
August 23rd, 1999, 01:08 PM
How do I pass parameters when calling an .exe file from an .exe file? How do I pass values back throught those parameters from the .exe file to .exe file?(How to accept the parameters? Should I use SHELL to call an .exe file or something else?

john
August 23rd, 1999, 01:08 PM
How do I pass parameters when calling an .exe file from an .exe file? How do I pass values back throught those parameters from the .exe file to .exe file?(How to accept the parameters? Should I use SHELL to call an .exe file or something else?

Lothar Haensler
August 24th, 1999, 01:52 AM
to pass parameters you can use the shell command as in

shell "notepad c:\autoexec.bat"



There is no way to get the results back via a command line.

You are better of using (OLE) automation.
create a COM component and call the properties and methods of that component. Then you can exchange parameters in both directions.

August 25th, 1999, 09:31 PM
You could send the parameters to a simple sequential file that could be read by the called .exe. and vice a versa.