GetEnvironmentVariable
SystemTools
Description
Find out what your system knows about itself! Environment variables store critical information such as installation paths, system directories, user context, and configuration settings - the DNA strand of your Windows system.
This tool gives you instant access to PATH, TEMP, JAVA_HOME, and all other environment variables. Perfect for dynamic configuration, path discovery, and system analysis!
Why This Tool Stands Out
- Any Variable can be retrieved
- User vs. System identifiable
- Existence Check included
- Instant Resolution - no restart
Perfect for:
Developers, DevOps engineers, system administrators, and troubleshooters. Indispensable for configuration management, path resolution, and analyzing environment issues.
Workflow support; time savings depend on the task
No opening System Properties, no navigating through dialogs. A single API call instantly returns the value of any environment variable - ideal for automated configuration checks.
Example Applications
Typical Use Cases
- "Read the
PATHvariable to determine the executable directories" - "Get the
TEMPdirectory for temporary files" - "Check whether
JAVA_HOMEis set"
JSON Parameters
- variableName (String, Required)The name of the environment variable to retrieve. Example: "PATH", "TEMP", "JAVA_HOME"
Example Call
{
"tool": "GetEnvironmentVariable",
"params": {
"variableName": "PATH"
}
}
Return Values
- variableName (String)
The variable name that was queried - value (String)
The value of the environment variable - exists (Boolean)
Whether the variable exists - isSystem (Boolean)
Whether it is a system variable
Related Tools
Download SindByte
Use all SystemTools locally on your system - fast, secure and without cloud dependency.
Download Now for Free