Share this page

# Utils.setEnv

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

    Utils.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

    (async ()=>{
        await Utils.setEnv("PATH", "C:\\product\\");
    })();

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