Does anyone know the Win Server 2008 output path for Environment.GetFolderPath (Environment.SpecialFolder.CommonApplicationData
I need to do some quick and dirty entries and was asked to write to a file.
I have done all the registration and now I need to save it somewhere in this Win Server 2008 operating system.
Does anyone know what the result is in Win Server 2008 for the following line of code. string myPath = Environment.GetFolderPath (Environment.SpecialFolder.CommonApplicationData);
Many thanks.
+2
jo
source
to share
1 answer
Most likely it is
%systemdrive%\ProgramData
... which is probably
C:\ProgramData
if Windows 2008 was not installed on a drive other than C: (unusual). Part of the reason Environment.SpecialFolder exists, so we don't need to think about these things.
http://msdn.microsoft.com/en-us/library/system.environment.specialfolder.aspx
+4
source to share