The operating system's environment variables often contain important information. For example, the PATH setting contains a list of directories which are searched when the operating system is looking for programs to run or DLLs to load.  

For some applications, particularly DOS applications such as Advanced Revelation, it may be necessary to read and/or write environment variables. The following topics will show you how to read and write environment variables. First, we will read the PATH variable. Then, we will create an environment variable called DATAPATH which points to the data for our application.

  • No labels