How can a program set DS environment variables?
Date: 8 Feb 2002 20:22:43 -0400 Program functions that read or write “the environment” typically access only the program’s copy of it. What this Q really wants to do is to modify the active environment, the one that is affected by SET commands in batch files or at the DS prompt. You need to do some programming to find the active environment, and that depends on the version of DS. A fairly well-written article in PC Magazine 28 Nov 1989 (viii:20), pages 309-314, explains how to find the active environment, and includes Pascal source code. The article hints at how to change the environment, and suggests creating paths longer than 128 characters as one application. Now as for downloadable source code, there are many possibilities. Stan Brown, the former list maintainer recommends the following: <> It includes some utilities to manipulate the environment, with source code in C. A newer program from PC Magazine 22 Dec 1992 (XI: 22) is: <> You can also use a call to INT 2E, Pass Command to I