If I remember correctly, the systemroot variable is for NT systems and above and windir for older windows versions (i.e. 95/9. I think the windir variable is still present for compatibility reasons. I.e. some applications might still use it.
If I remember correctly, the systemroot variable is for NT systems and above and windir for older windows versions (i.e. 95/9. I think the windir variable is still present for compatibility reasons. I.e. some applications might still use it.
That sounds about right. I bet if anyone has a 9x system and runs the SET command from MS-DOS, you will see the WinDir variable and not SystemRoot.
Thanks Everyone, Authenticated Users, Domain Admins, and Guest.
If I remember correctly, the systemroot variable is for NT systems and above and windir for older windows versions (i.e. 95/9. I think the windir variable is still present for compatibility reasons. I.e. some applications might still use it.
Yes %windir% is for win 9x, %systemroot% is fot win nt & above, but %windir% remain to use..
Comments
I'm on my work machine and it goes to c:\windows if
you type %systemroot% from Run.
Any idea why both variables point to the same location?
That sounds about right. I bet if anyone has a 9x system and runs the SET command from MS-DOS, you will see the WinDir variable and not SystemRoot.
Thanks Everyone, Authenticated Users, Domain Admins, and Guest.
Yes %windir% is for win 9x, %systemroot% is fot win nt & above, but %windir% remain to use..