I've got a smallish app on Win32. Everything works now (thanks Monks!) except for one small detail: I need the script to terminate itself at the "end". My script currently fork()'s a number of processes, so I'm guessing it's waiting for the return code(s). This isn't going to happen, as the programs I forked will be running indefinitely - but I still need the script (and it's associated console window) to go away. Once the script executes, I can currently hit cntrl-c, the script will stop, and all my fork()'ed programs continue running. This is what I want them to do, without me having to hit ctrl-C.