Search:
Namespaces
Discussions
.NET v1.1
Feedback
Reading the set temp and set tmp environment or something equivalent
Messages
Related Types
This message was discovered on
microsoft.public.dotnet.languages.vc
.
Responses highlighted in red are from those people who are likely to be able to contribute good, authoratitive information to this discussion. They include Microsoft employees, MVP's and others who IMHO contribute well to these kinds of discussions.
Post a new message to this list...
Ioannis Vranos
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?
--
Ioannis Vranos
Reply to this message...
Carl Daniel [VC++ MVP] (VIP)
Ioannis Vranos wrote:
[Original message clipped]
For native C++, use getenv() from <stdlib.h>
For managed, use System::Environment::GetEnvironmentVariable from mscorlib.
-cd
Reply to this message...
Ad
MBR BootFX
Best-of-breed application framework for .NET projects, developed by Matthew Baxter-Reynolds and MBR IT
Copyright © Matthew Baxter-Reynolds 2001-2008. '.NET 247 Software Development Services' is a trading style of MBR IT Solutions Ltd.
Contact Us
-
Terms of Use
-
Privacy Policy
-
www.dotnet247.com