Solved

difference between %windir% and %systemroot%

Posted on 2011-02-27
2
778 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
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

Title # Comments Views Activity
File and Folder Permissions Windows Vista 9 655
Vista SP2 32-bit won't check for updates 5 453
Vista - error > interactive log on has failed 2 138
Windows permissions error 17 452
Hi All Just a quick one for everybody. I was recently looking into setting the default User Account Picture for all my vista clients within the network but on closer inspection the group policy setting only allows you to set the default pictur…
So who is this article for? If you are like most of the computer users out there, you probably only realize the meaning of 'System maintenance' after something goes wrong. This article is for you if you care about keeping your system working opti…
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

840 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