Click or drag to resize

FileSystemGetEnvironmentVariableValue Method

Returns the value of a specified environment variable.

Namespace:  ABB.Robotics.Controllers.FileSystemDomain
Assembly:  ABB.Robotics.Controllers (in ABB.Robotics.Controllers.dll) Version: 6.5.129.0
Syntax
C#
public string GetEnvironmentVariableValue(
	string variable
)

Parameters

variable
Type: SystemString
The name of the environment variable, must be one of the following: HOME,SYSTEM,RELEASE,INTERNAL,TEMP. Otherwise string.Empty will be returned!

Return Value

Type: String
The value of the variable.
Examples
This example retrieves the values of all the environment variables.
Controller c = new Controller();
FileSystem fs = c.FileSystem;
//gets the value of "HOME"
string envHome = fs.GetEnvironmentVariableValue("HOME");
//gets the value of "SYSTEM"
string envSystem = fs.GetEnvironmentVariableValue("SYSTEM");
//gets the value of "INTERNAL"
string envInternal = fs.GetEnvironmentVariableValue("INTERNAL");
//gets the value of "RELEASE"
string envRelease = fs.GetEnvironmentVariableValue("RELEASE");
//gets the value of "TEMP"
string envTemp = fs.GetEnvironmentVariableValue("TEMP");
fs.Dispose();
c.Dispose();
See Also