Cicode Programming Reference > Cicode Function Categories > Miscellaneous Functions > GetEnv

GetEnv

Gets a DOS environment variable.

Syntax

GetEnv(sName)

sName:

The name of the environment variable. The length of the name should not exceed 255 characters.

Return Value

The DOS environment variable (as a string).The return value returns up to 255 characters and is truncated if exceeds.

Example

/* Get the current DOS path. */
sPath = GetEnv("Path");

See Also

Miscellaneous Functions

Published June 2018