Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Method

GetVariable

ModuleNomad
Library1E
Action


Excerpt
Gets the value of the given Nomad "variable".


Parameters

VariableName (string): Name of the variable to get.

A variable can be any piece of info about Nomad such as a registry setting or even some computed value based on the current state of Nomad. This API is meant to be a flexible way of getting info out from Nomad which can be extended in future without breaking any COM interfaces. Currently the following three are the only supported variables:
  1. CacheAvailableBytes: The disk space currently available to Nomad for its cache in bytes.
  2. CacheUsedBytes: The disk space currently used by Nomad.
  3. SSDEnabled: The value of registry setting "SSDEnabled".
Return values

Value (

string

integer): The value of the requested variable.

The type depends on the variable in question, although the currently supported variables are all numeric.

Example

Get the current value of Nomad setting "SSDEnabled": 

Code Block
Nomad.GetVariable(VariableName: "SSDEnabled");


Platforms
  • Windows
Notes

Requires Nomad v6.3.200 or later.

Available from Tachyon v3.2.