Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!brutus.cs.uiuc.edu!ux1.cso.uiuc.edu!ux1.cso.uiuc.edu!uxh.cso.uiuc.edu!mead From: mead@uxh.cso.uiuc.edu Newsgroups: comp.lang.pascal Subject: need (TP) procs "SetKey" & "SetEnv" Message-ID: <13000012@uxh.cso.uiuc.edu> Date: 3 Aug 90 02:10:00 GMT Lines: 22 Nf-ID: #N:uxh.cso.uiuc.edu:13000012:000:838 Nf-From: uxh.cso.uiuc.edu!mead Aug 2 21:10:00 1990 I am not a particularly knowledgable about DOS. Perhaps someone can help: In BASIC, you can (I believe - this damn computer came w/o a BASIC manual) 'chain' from one program to another. In (UNIX) C, you can do something similar with system (?). There must be a way in turbo pascal. Specifically, I need to have one program call another without the first program staying resident (as with exec() or keep()). I imagine this is done (or could be done) by placing in the keyboard buffer (but where is that?) immediately prior to termination. Sort of like SetKey instead of ReadKey. Another procedure that we are without is SetEnv -- a procedure to "create" a DOS environmental variable. If anyone has authored this or knows how it might be done, I'd like to hear from them. Thanks, -alan mead : mead@uxh.cso.uiuc.edu