The ApplicationInfo object provides details about the host environment and the running application.
You can read or set environment variables using indexed property access.
var path := ApplicationInfo.EnvironmentVariable['PATH'];
if path <> '' then PrintLn('Path found'); Path found
Useful for determining file locations relative to the server binary.
var exe := ApplicationInfo.ExeName;
if exe.Contains('DWSWebServer') then PrintLn('Running on DWSWebServer'); Running on DWSWebServer
For more details on runtime environment properties, see the reference documentation: