CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 1998
    Posts
    16

    Passing/Retrieving Parameters from/to executable file

    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?


  2. #2
    Join Date
    May 1999
    Posts
    3,332

    Re: Passing/Retrieving Parameters from/to executable file

    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.


  3. #3
    Guest

    Re: Passing/Retrieving Parameters from/to executable file

    You could send the parameters to a simple sequential file that could be read by the called .exe. and vice a versa.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured