CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2001
    Posts
    7

    EXE RETURN VALUE

    Hi !
    I realy need help !
    Sommebody know how to set a return value to a exe in VB ?
    to cath them in MS DOS Batch ...
    Thx



  2. #2
    Join Date
    May 2000
    Location
    New York, NY, USA
    Posts
    2,878

    Re: EXE RETURN VALUE

    c:\YourVB.exe Param1

    This Param1 you can read in VB using Command$



    Iouri Boutchkine
    [email protected]
    Iouri Boutchkine
    [email protected]

  3. #3
    Join Date
    Apr 2001
    Posts
    7

    Re: EXE RETURN VALUE

    Thx for your answer ...
    But my real question is :
    How to get a return value from a VB exe ?



  4. #4
    Join Date
    Apr 2000
    Posts
    737

    Re: EXE RETURN VALUE

    you might consider using TerminateProcess API instead of unload me, which allow you to put a exit code, which I am not sure whether it can be captured by DOS.

    HTH

    cksiow
    http://vblib.virtualave.net - share our codes


  5. #5
    Join Date
    Apr 2001
    Posts
    7

    Re: EXE RETURN VALUE

    I try this !
    As we say in france !
    MERCI BEAUCOUP !



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