Exit code in windows

Tse Ming Wai wrote:

> I use D1 and call ExitWindows to terminate the windows session. I want
> to pass an exit code to an outside batch file in a way similar to DOS
> programs, is it possible?

> i.e.

> WIN myapp
> If errorlevel > 10 goto :handle_error_10

> Many thanks.

I don't know if it's possible, but if it isn't possible, you can use D1
to either create or erase a file and you can let your DOS batch program
test to see if the file exists or not.

Howard L. Kaplan
Psychopharmacology and Dependence Research Unit
Women's College Hospital
76 Grenville Street, 9'th floor
Toronto, Ontario
Canada  M5S 1B2
(416)323-6400, ext 4915