Groups | Blog | Home
all groups > visual c > september 2004 >

visual c : Reading the set temp and set tmp environment or something equivalent


Carl Daniel [VC++ MVP]
9/12/2004 7:29:20 AM
[quoted text, click to view]

For native C++, use getenv() from <stdlib.h>

For managed, use System::Environment::GetEnvironmentVariable from mscorlib.

-cd

Ioannis Vranos
9/12/2004 8:25:46 AM
Is there any way to find out the current user's directory temp paths in
..NET applications?


For example to read the set variables which in my account are:


TEMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp
TMP=C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp



or another way to retrieve that information?




--
AddThis Social Bookmark Button