Black Label
August 21st, 2001, 03:57 PM
How can i send an exit code with a VB App? It's to be test with errorlevel in a batch file.
|
Click to See Complete Forum and Search --> : Exit code Black Label August 21st, 2001, 03:57 PM How can i send an exit code with a VB App? It's to be test with errorlevel in a batch file. phunkydude August 21st, 2001, 04:14 PM There's an API that'll do taht for you: private Declare Sub ExitProcess Lib "kernel32.dll" Alias "ExitProcess" _ (byval uExitCode as Long) I'm not too sure whether you'll catch the errorlevel if the application has a Window's GUI (you may have to go the console way), but give it a bash. Black Label August 22nd, 2001, 08:35 AM Thank you! It works! Gek August 23rd, 2001, 03:11 AM The API call always makes my application crash because of a memory access violation. Any ideas why? Daniel codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |