• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 845
  • 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.  

Thanks
0
AJJ36
Asked:
AJJ36
1 Solution
 
Darren SharplesCommented:
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
 
droydenCommented:
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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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