home *** CD-ROM | disk | FTP | other *** search
- Unit DosEnv;
-
- { -----------------------------------------------------------------------
-
- DOSENV.TPU
- Version 1.0
- Copyright 1987 Lawrence R. Steeger
-
- Permission is granted to distribute this unit and its associated files
- for both commercial and non-commercial use, if all copyright statements
- and the following liability statements are included.
-
- No liability for any damage caused by the use of this unit, or by
- programming errors in this unit, can be assumed by the author.
-
- Programming errors may be reported to Lawrence R. Steeger [72260,107]
- on CompuServe.
-
- -----------------------------------------------------------------------
-
- This unit contains functions to read DOS environment variables from
- the current DOS environment block. All functions will return a null
- string ('') if any error occurs.
- }
-
- Interface
-
- { EnvName returns a string containing the DOS environment variable name
- for the relative number specified by integer value from 1 thru 32767.
- }
-
- Function EnvName(I : Integer) : String;
-
- { EnvString returns a string for the DOS environment variable named
- by string S.
- }
-
- Function EnvString(S : String) : String;
-
- { EnvPath returns a string for the current DOS EXEC pathname from
- the environment. This function will return a null string if the
- DOS version is less than 3.
- }
-
- Function EnvPath : String;
-
- Implementation
-
-