$ 0 0 Environment.GetEnvironmentVariable("SystemRoot"); or Environment.GetEnvironmentVariable("windir");