home *** CD-ROM | disk | FTP | other *** search
- PROGRAM ShowEnvironmentVariable;
-
- USES DOS;
-
- VAR
- Name,Value : String;
-
- BEGIN
- Write('Enter the name of an environment variable: ');
- Readln(Name);
- Value := GetEnv(Name);
- IF Length(Value) = 0 THEN
- Writeln('That variable is not in the environment.')
- ELSE
- Writeln('The value of ',Name,' is ',Value,'.');
- END.