Click to See Complete Forum and Search --> : EXE RETURN VALUE


meske
June 13th, 2001, 12:24 PM
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

Iouri
June 13th, 2001, 01:29 PM
c:\YourVB.exe Param1

This Param1 you can read in VB using Command$



Iouri Boutchkine
iouri@hotsheet.com

meske
June 14th, 2001, 03:06 AM
Thx for your answer ...
But my real question is :
How to get a return value from a VB exe ?

cksiow
June 14th, 2001, 03:34 AM
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

meske
June 14th, 2001, 03:37 AM
I try this !
As we say in france !
MERCI BEAUCOUP !