Share this page

# UtilsA.setEnv

Sets the named environment variable to the specified value. If the variable already has a value, it is overwritten.

    UtilsA.setEnv(name, value);

## Arguments

Name | Description
--- | ---
name | (string) Name of the environment variable.
value | (string) Value to set for the environment variable.

## Return value

A promise that will be fulfilled with no arguments.

## Example

Copy code

    UtilsA.setEnv("PATH", "C:\\myproduct\\").then(function(){
      TCA.done();
    }).catch(function (error) {
      TCA.doneWithError(error);
    });

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: