How to add your knowledge

getenv

    Table of contents
    1. 1. Synopsis
    2. 2. Syntax
    3. 3. Example 1

    Synopsis

    Returns the value of the environment variable, str, as a string. If the named environment variable does not exist, it returns the empty string. Unfortunately, there is no way to distinguish between the case where the variable does not exist and the case where it actually has the empty string value "".

    Syntax

    getenv ( str As String ) As String
    Argument Type Description
    str String The name of the environment variable of interest.

    Example 1

    Intent >getenv("windir")
    --> "C:\WINDOWS"