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?
Printable View
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?
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.
You could send the parameters to a simple sequential file that could be read by the called .exe. and vice a versa.