• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 868
  • Last Modified:

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.  

1 Solution
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
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.
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.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now