G Guest Jan 25, 2004 #1 Hi, Can any of you tell me how to get WindowsDirectory using C# Thanks Michael
H Herfried K. Wagner [MVP] Jan 25, 2004 #3 * "=?Utf-8?B?TWljaGFlbA==?= said: Can any of you tell me how to get WindowsDirectory using C#? Thanks. Click to expand... System directory: 'Environment.GetFolderPath(Environment.SpecialFolder.System))' Windows directory: 'System.Environment.ExpandEnvironmentVariables("%WinDir%")' - or - Trick by Bill McCarthy: 'System.Environment.GetFolderPath(CType(&H24, System.Environment.SpecialFolder))' - or - P/invoke on 'GetWindowsDirectory' (IMO the preferred way): <http://groups.google.de/groups?selm=#pJhic2CBHA.2200@tkmsftngp07>
* "=?Utf-8?B?TWljaGFlbA==?= said: Can any of you tell me how to get WindowsDirectory using C#? Thanks. Click to expand... System directory: 'Environment.GetFolderPath(Environment.SpecialFolder.System))' Windows directory: 'System.Environment.ExpandEnvironmentVariables("%WinDir%")' - or - Trick by Bill McCarthy: 'System.Environment.GetFolderPath(CType(&H24, System.Environment.SpecialFolder))' - or - P/invoke on 'GetWindowsDirectory' (IMO the preferred way): <http://groups.google.de/groups?selm=#pJhic2CBHA.2200@tkmsftngp07>