You are here: Scripting commands > GetEnvStr

GetEnvStr

Command GETENVSTR
Description Retrieves an operating system environment variable and stores the value in a Double-Take Availability variable
Syntax GETENVSTR <env_variable> $<variable_name>
Options
  • env_variable—Name of the operating system environment variable that you want to store in the user defined variable
  • variable_name—Name of the variable you want to create. This variable will store the operating system environment variable specified.
Examples getenvstr computername $server
Notes It is not necessary for either the environment or Double-Take Availability variable to exist when using this command. A non-existent environment variable will store a null string in the Double-Take Availability variable.