Solved

difference between %windir% and %systemroot%

Posted on 2011-02-27
2
784 Views
Last Modified: 2012-06-27
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
Comment
Question by:AJJ36
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Expert Comment

by:Darren Sharples
ID: 34991001
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
 
LVL 7

Accepted Solution

by:
droyden earned 500 total points
ID: 34991003
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

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The main issue when installing Vista and XP in dual boot is when you have to reinstall any of the two when something fails, let's say a hard disk failure, a lost partition, virus, etc. What commonly happens is that you lose all your hard work config…
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question