difference between %windir% and %systemroot%

Does anyone know the difference between %windir% and %systemroot%.  I am getting set to take 70-622 and as far as I can tell the windir referes to the windows directory and the systemroot referes to the same thing.

Is this right and if so how do i distinguish between them.  

Thanks
AJJ36Asked:
Who is Participating?
 
droydenConnect With a Mentor Commented:
Both now return the same values, %windir% is a legacy (nt/windows 2000 etc) variable and as such as been kept on for portability of old scripts.
0
 
Darren SharplesSystems SpecialistCommented:
I presume that with regards to microsoft os' that would be correct.  Other os' would use systemroot as the system root and probably wont recognise windir
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.