doug@bdt.UUCP (Doug Asherman) (08/30/90)
I'm looking for some code/information on how to find the MS-DOS master environment from within a program. I'm currently doing it by searching for the string "COMSPEC" in memory, but there must be a better way. If code is submitted, I'd like it to be public domain. Thanks in advance. Doug Asherman -- .signature: permission denied
TOMIII@MTUS5.BITNET (Thomas Dwyer III) (08/31/90)
The article "A Shortcut Between Directories" by Ken Hipple in the June 1988 issue of PCResource magazine has a perfect example of how to locate the master copy of the environment. Unfortunately, this method (of searching the memory control blocks) does not seem to find the environment in DOS version 4.x. Does anyone know of a method to locate the environment that does not depend on the DOS version? I suppose DOS 3.x and above would be more than sufficient for most people. Thomas Dwyer III Email: tomiii@mtu.edu Network Programmer tomiii@mtus5.BITNET Computing Technology Services Voice: (906) 487-2110 Michigan Technological University Fax: (906) 487-2787