Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

How can a program set DS environment variables?

0
Posted

How can a program set DS environment variables?

0

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

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123