SetEnvironmentVariable()
Summary
Sets the value of a DOS environment variable within the current program's process.
Syntax
SetEnvironmentVariable(string variable, string value)
| Argument | Contents |
|---|---|
| variable | The name of the DOS environment variable |
| value | The string assigned to the environment variable |
Note
-
The DOS environment variable will only be available from within the program while it is running.
Example
SetEnvironmentVariable("PATH", "c:\\database;c:\\cdf")
See Also
| Function | Summary |
|---|---|
| GetEnvironmentVariable() | Gets the value of a DOS environment variable |