From Xojo Documentation
Used to get and set environment variables. Name is case-sensitive.
For web applications, you can use this method to get the "ROOT" or "DOCUMENT_ROOT" environment variables used by the web server. The "env" example below can be used to list all the available environment variables on your web server.
Get the value of the HOME environment variable:
Set the value of the HOME environment variable:
To get the list of environment variables and their values (macOS and Linux), execute the "env" command from a terminal window or via the Shell class. On Windows, use the "set" command instead of "env".
Var cmd As String
#If TargetWindows Then
cmd = "set"
cmd = "env"
TextArea1.Value = sh.Result
This example gets the value of the COMPUTERNAME environment variable on Windows.