>You ought to try Tcl/Tk, for three reasons. One, it gives you an entrance into the Unix world, thus more career flexibility, Two, once you've written a Tcl/Tk macro, you'll never want to write a .cmd file ever again - the language even includes a comprehensive user interface. And three, it can be downloaded for free - just got to the Scriptics web site (
www.scriptics.com).
>
Been there, done that, and use other tools as necessary. I've no interest in ?nix at this point in time - wasted time with it long ago and far away. Plenty of BSD in the past.
>>>What I want to know is whether executing ExitProcess() will properly return an integer in this manner, and how I would integrate this in my framework's shutdown routine.
>>
>>Use ExitProcess() as shown above as an alternative to QUIT. Like I said, makes its own sauce. This Win32 stuff is easy...
>
>Unfortunately, Tcl/Tk won't read ERRORLEVEL, since it's cross-platform to Windows, Unix (and Linux of course), and Macintosh.
Then it's flawed; if it checks and returns the termination code, it gets the DOS errorlevel, which is
the same thing. Read the MSDN docs, and go bitch at whatever gave you the flakey, useless tool. VBScript, JScript, and anything that can call the Win32 API can do this...my API_APPRUN class does it in VFP, Appleman has sample VB code in his API book. Python does it, too. So does native NT ShellScript. Sounds like Tcl doesn't cut it here...