Hi,

string s1 =
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData);

this gives you a lot of directories, besides temp - but you can get temp
via:

string s2 = Environment.ExpandEnvironmentVariables("%temp%");




cheers,
dominick

-----------------------------
Dominick Baier, DevelopMentor
http://www.leastprivilege.com


-----Original Message-----
From: Discussion of advanced .NET topics.
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Smotritsky
Sent: Samstag, 26. November 2005 08:43
To: [email protected]
Subject: [ADVANCED-DOTNET] figuring out where to log to from a gac dll

I want to log some things to a text file from a dll I have in the gac. One
thought is to log to c:\temp but I don't want to hard code that so I'd like
to know what's a good way to find out what the c:\temp directory is on a
windows system. Any thoughts anyone has on other places to log to are
welcome. I suppose the event log is an option but I'd have to discuss that
with my partner on my project as logging to a text file is his idea.






===================================
This list is hosted by DevelopMentor.  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

===================================
This list is hosted by DevelopMentor®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

Reply via email to