Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!adm!PLei.ES@Xerox.COM From: PLei.ES@Xerox.COM Newsgroups: comp.lang.c Subject: RE: Setting DOS errorlevel in C (How?) Message-ID: <12422@brl-adm.ARPA> Date: 15 Mar 88 21:53:32 GMT Sender: news@brl-adm.ARPA Lines: 7 Some C compilers allow you to set the errorlevel with the exit statement as you terminate your program. e.g.: exit(0); for normal exit; exit(x); where x != 0 otherwise. Microsoft C let's you do this. Hoped that helped. /Paul