Path: utzoo!attcan!uunet!ncrlnk!ncrcae!ece-csc!mcnc!rutgers!deimos!uxc!tank!mimsy!haven!adm!xadmx!jc58+@andrew.cmu.edu From: jc58+@andrew.cmu.edu (Johnny J. Chin) Newsgroups: comp.lang.pascal Subject: Getting MSDOS environment Message-ID: <17769@adm.BRL.MIL> Date: 11 Dec 88 09:11:59 GMT Sender: news@adm.BRL.MIL Lines: 23 Fellow Turbo Pascal Users: I have a little problem that I need your expertise. I writing a program and I need to be able to read in the system environment variable PATH. Does anyone know how to do this? (Similar to the getenv command in C, is what I'm looking for.) Thanks in advance for your reply. Please, reply even if you have a hint on how to get this to work (even if its in assembly!) Note, I am using Turbo Pascal 4.0 (haven't got 5.0 yet). -- J. Chin (a.k.a. Computer Dr.) xxxxxxxxxx xxx xxx xx ------------------ Carnegie Mellon University ------------------ xxx xxx xx 4730 Centre Ave. #412 ARPAnet: Johnny.J.Chin@andrew.cmu.edu xxxxxxxxxxxx Pittsburgh, PA 15213 BITnet: jc58@andrew.BITNET x xxxxxxxx x (412) 268-8936 UUCP: ...!harvard!andrew.cmu.edu!jc58 xx xx ---------------------------------------------------------------- xxxxxxxxxx