[...]
> And I run the function like this:
>
> wait shellexecute(0, "open", "sello.bat" )
>
> And this works perfectly, I mean, it runs correctly my bat file and
> hides the msdos window .... but the function returns 42 value, I have
> searched about why returns the value 42 and I have not found anything
> that can help me understand.
>
> How can I get a "real" value, that let me know, for example, if the
> process was completed successfully.
According to <http://support.microsoft.com/kb/238245> a return value of
33 or above is the instance handle of the application that was called
while return values of 32 or below indicate an error. A list of possible
error codes is included in the kb document.
Regards,
Klas
> Did you find out what the meaning about value 42 ?
Did you read my reply in the message before the one you responded to? It
means nothing, it is just a handle to the process.
Regards,
Klas