Forum Home
Press F1
 
Thread ID: 30586 2003-02-24 20:06:00 +VB6 and DOS errorlevel flex300 (3235) Press F1
Post ID Timestamp Content User
123613 2003-02-24 20:06:00 I am interested in setting the DOS errorlevel from a VB6 application I am writing but can not seem to find a way.

Any idea - help - code sample would be greatly appreciated.
flex300 (3235)
123614 2003-02-25 03:49:00 I don't like BASIC. :D

On general principles, look at how you exit the VB, apart from (I suppose, by default) reaching the "end" of the programme. Is there is a "RETURN", or "EXIT" statement? It will almost certainly accept an argument such as "Return 1" or "return(2)" .
Graham L (2)
123615 2003-02-25 03:59:00 Hmmm, I don't think Bill Gates would like you to do that . . . (only joking :D ) .

There may well be a way to do it natively in VB but if you have Visual Studio what about passing the errorlevel (parameter) to a C Win32 DOS program which dos could then pick up . . .

Any humour (or attempt at humour) in this message is not intended to offend or annoy other PF1 members .
Dolby Digital (160)
1