Click to See Complete Forum and Search --> : How can I retrieve the value of WINDOWS PATH variable?


oversky
September 11th, 1999, 06:11 AM
I don't know how to retrieve the value of WINDOWS PATH, that u can find
in the AUTOEXEC.BAT file for example, or in the Section "Environment" of the control panel (system icon) of Win NT?

Perhaps an API exist?

Lothar Haensler
September 13th, 1999, 01:56 AM
GetEnvironmentVariable is the API to look for.

Crazy D @ Work
September 13th, 1999, 03:20 AM
You can also the Environ$() function of VB, I believe that Envrion$("WINDIR") returns the winows dir as stated in the environment settings.

Crazy D @ Work :-)

Lothar Haensler
September 13th, 1999, 03:24 AM
good point. I seem to be API-addicted :-)