windir in Windows Xp and Windows 7
By Perry
The windir root has been changed from Windows Xp to Window 7. We were using C:\WINNT in Windows 7 and it has changed to C:\Windows in Windows 7 that leads to make changes in configuration files for our applications.
The simple solution would be to user %windir% environment variable to get the windows
root directory. This will be compatible to both Windows Xp and Windows 7.
From C# .NET user, Environment.GetEnvironmentVariable("windir") to get
the windows root.
Related FAQs
See http://www.eggheadcafe.com/sample-code/Windows7/e53b9d81-c025-4e41-a45c-f22214221c53/windows-7-uac-user-accou.aspx for UAC concept details. This shows how to disable it.
There is a change in security mode from Windows Xp to Windows 7. UAC is one of the changes.
The windir root has been changed from Windows Xp to Window 7. We were using C:\WINNT in Windows 7 and it has changed to C:\Windows in Windows 7 that leads to make changes in configuration files for our applications.
This is real project stuffs I am putting here. Will include more as and when I progress.
windir in Windows Xp and Windows 7 (3042 Views)