Thread overview
Environment Variables
Jun 16, 2005
Jordon Hirshon
Jun 16, 2005
mx0
Jun 17, 2005
Matthew
Jun 17, 2005
Walter
June 16, 2005
How can I see the  value of environment variables such as INCLUDE and LIB?

Thanks,
Jordon


June 16, 2005
In article <d8rklp$1ts9$1@digitaldaemon.com>, Jordon Hirshon says...
>
>How can I see the  value of environment variables such as INCLUDE and LIB?
>
>Thanks,
>Jordon
>
>

Inside the program or in the system?

If you want to see these values in system, use
echo %INCLUDE%
from the command line (the easiest way, works AFAIK on Unix/Linux, in Windows
however you have other options to view these values from control panel or in the
registry, which you will especially need if you want to change environment
variables, because changing them in command line box using SET command will not
work for the entire system, but for that command line box only). Or you can call
SET command without parameters, which displays all environment variables
currently set with theire values.

Form inside the program, you can retrieve environment variables using
getenv(varname) function (stdlib.h).


June 17, 2005
Use nvx from http://synesis.com.au/systools.html, as in:

    nvx include lib path

It splits them into constituent parts, and can display which bits don't exist with -x and -X flags.

There are also shortcuts for INCLUDE, LIB, CLASSPATH and PATH, so you can just type

    nvx -i -l -c -p


There
"Jordon Hirshon" <j.hirshon@worldnet.att.net> wrote in message
news:d8rklp$1ts9$1@digitaldaemon.com...
> How can I see the  value of environment variables such as INCLUDE and LIB?
>
> Thanks,
> Jordon
>
> 


June 17, 2005
"Jordon Hirshon" <j.hirshon@worldnet.att.net> wrote in message news:d8rklp$1ts9$1@digitaldaemon.com...
> How can I see the  value of environment variables such as INCLUDE and LIB?

Type:

    set

from the command prompt.