I want to be able to set the operating system ERRORLEVEL from a VB application(NT4 with VB6) so the calling process can respond to the ERRORLEVEL accordingly. The errorlevel would correspond say 1 for success and 0 for no and other values as required.
Batch file would be as follows:
MYVBAPP.EXE (call vb app which sets errorlevel)
if errorlevel 1 goto next1