jc58+@andrew.cmu.edu (Johnny J. Chin) (12/11/88)
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
leonard@bucket.UUCP (Leonard Erickson) (12/16/88)
Get TP5.0! It includes GetEnv, EnvStr, and EnvCount. What you'd do is: path := GetEnv('path'); {or 'PATH'} to get the path... -- Leonard Erickson ...!tektronix!reed!percival!bucket!leonard CIS: [70465,203] "I used to be a hacker. Now I'm a 'microcomputer specialist'. You know... I'd rather be a hacker."