Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!wuarchive!udel!udccvax1!mikej From: mikej@vax1.acs.udel.EDU (Michael Jacobs) Newsgroups: comp.lang.pascal Subject: Re: turbo 5.0 dos stuff Keywords: environment variables Message-ID: <5104@udccvax1.acs.udel.EDU> Date: 22 Nov 89 23:56:32 GMT References: <10499@xanth.cs.odu.edu> Reply-To: mikej@vax1.acs.udel.EDU (Michael Jacobs) Organization: Yoyodyne Propulsion Systems Lines: 17 In article <10499@xanth.cs.odu.edu> wayne@cs.odu.edu (C Wayne Huling) writes: >1) How can I use DOS environment variables in a pascal program. In particular > I want to put the server program in one directory and the client programs > in another. How can I use the dos file varialbe in pascal. Use the GetEnv function (dos unit). writeln ('environment for whatever is ', GetEnv(whatever)); ^ a string, the environment variable -- Mike J | The Grey Sysop... | Phone...RING!...yep yep yep yep yep! |