Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!rpi!uupsi!cmcl2!adm!news From: CDCKAB%EMUVM1.BITNET@cunyvm.cuny.edu ( Karl Brendel) Newsgroups: comp.lang.pascal Subject: Re: DOS Environment Variables Message-ID: <26633@adm.brl.mil> Date: 22 Apr 91 20:24:49 GMT Sender: news@adm.brl.mil Lines: 38 In article <4744@ash54.UUCP>, hamilton@motcid.uucp (Danial Hamilton) wrote: >My son programs using Turbo Pascal, and would like to pass >a value from his Pascal program to another program via a >DOS environment variable. Can he do this? Can someone [...remainder deleted...] (I find that I cannot reach @motcid.uucp from my site, so I am posting here.) Unfortunately, it is much easier to _get_ the value of environment variables in Turbo Pascal than it is to _set_ them. You will find a set of PD units from TurboPower Software available as PD1:BONUS507.ARC,1,150435,8,900205, "Misc. TP 4/5 utilities/pgms from TurboPower" on Simtel and mirrors. It contains a unit called TPENV which provides many capabilities relating to environment variables. I'd suggest you download it and go from there. If you can't get the entire file, I can email you an excerpt I made specially for net postings, but you would do well to grab the entire thing. (NOTE: it appears that you'll have to give me a Bitnet-accessible address if I am to email you.) It is _real_ PD stuff, and although it is written to accompany TurboPower's commercial library, it is easy to use on its own. Cheers-- --Karl +====================================================================+ | Karl Brendel Centers for Disease Control | | Internet: CDCKAB@EMUVM1.BITNET Epidemiology Program Office | | Bitnet: CDCKAB@EMUVM1 Atlanta GA 30093 USA | | Home of Epi Info 5.0 | +====================================================================+