* "Shelby" <sh****@itsupport.com.sg> scripsit:
So I was wondering how do I get the Windows directory?
System directory:
'Environment.GetFolderPath(Environment.SpecialFold er.System))'
Windows directory:
'System.Environment.ExpandEnvironmentVariables("%W inDir%")'
- or -
Trick by Bill McCarthy:
'System.Environment.GetFolderPath(CType(&H24, System.Environment.SpecialFolder))'
- or -
P/invoke on 'GetWindowsDirectory' (IMO the preferred way):
<URL:http://groups.google.de/groups?selm=%23pJhic2CBHA.2200%40tkmsftngp07>
--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>