Path: utzoo!censor!geac!torsqnt!tmsoft!mshiels From: mshiels@tmsoft.uucp (Michael A. Shiels) Newsgroups: comp.windows.ms Subject: Re: Environment space for DOS appl. under Windows Message-ID: Date: 25 Oct 90 00:03:02 GMT References: <433.2721eb3c@ae.chalmers.se> <90294.214618DRJ100@psuvm.psu.edu> Reply-To: mshiels@tmsoft.UUCP (Michael A. Shiels) Organization: MaS Network Software and Consulting Lines: 17 Windows Applications can also call the normal DOS spawn functions with no problems at all. Ie a windows based CRON? BUT THERE IS ONE BUG. YOU CAN NOT PASS A NEW ENVIRONMENT TO THE SUBPROGRAM ALL YOU CAN PASS IS A 0 IN THE ENVIRONMENT POINTER SO THAT IT WILL INHERIT THE ENVIRONMENT OF THE PARENT PROGRAM (WINDOWS!). THERE IS A FIX THOUGH. The DOS int 21 function 4B exec control block must be in the same segment as the environment sort if the following form. segment:0 environment variables :x is where the control block is located and it's environment segment is set to "segment"