The ApplicationInfo object provides details about the execution environment and operating system.
| Property | Type | Description |
|---|---|---|
EnvironmentVariable[name] |
String | Read or set OS environment variables. |
ExeName |
String | Path to the current host executable. |
UserName |
String | Name of the logged-in user. |
ExeLinkTimeStamp |
TDateTime | Binary compilation timestamp. |
if ApplicationInfo.UserName <> '' then PrintLn('User name found');
if ApplicationInfo.ExeName <> '' then PrintLn('Host name found');
var path := ApplicationInfo.EnvironmentVariable['PATH'];
if path <> '' then PrintLn('Path found'); User name found Host name found Path found