"Richard L Rosenheim" <ri*****@rlr.com> schrieb:
Is there a method in the .NET Framework that returns the path to just the
Windows directory?
Windows directory:
'System.Environment.GetEnvironmentVariable("WinDir ")'
'System.Environment.ExpandEnvironmentVariables("%W inDir%")'
- or -
Trick by Bill McCarthy:
'System.Environment.GetFolderPath(CType(&H24,
System.Environment.SpecialFolder))'
- or -
P/invoke on 'GetWindowsDirectory':
<URL:http://groups.google.de/groups?selm=%23pJhic2CBHA.2200%40tkmsftngp07>
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>