%windir% versus %systemroot%

This is a discussion about %windir% versus %systemroot% in the Slack Space category; Does anyone know the difference between %windir% and %systemroot%? For those not knowing what it’s all about please don’t post any replies. .

Slack Space 1613 This topic was started by , . Last reply by ,


data/avatar/default/avatar31.webp

13 Posts
Location -
Joined 2000-03-27
Does anyone know the difference between %windir% and %systemroot%?
For those not knowing what it’s all about please don’t post any replies.

Participate in our website and join the conversation

You already have an account on our website? To log in, use the link provided below.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This subject has been archived. New comments and votes cannot be submitted.
Apr 6
Created
Apr 7
Last Response
0
Likes
1 minute
Read Time
User User User
Users

Responses to this topic


data/avatar/default/avatar15.webp

10 Posts
Location -
Joined 2000-04-01
%windir% is the Windows directory (I.E: C:\windows) and %systemroot% is the HD root dir (c:\)

data/avatar/default/avatar31.webp

13 Posts
Location -
Joined 2000-03-27
OP
Sorry Radu175 it seems you’ve never tried these two because the answer is wrong.
Both syntaxes do the same action, you may want to try it your self.

data/avatar/default/avatar28.webp

633 Posts
Location -
Joined 1999-07-16
From the "windows script host reference" on MSDN...
 

  • SYSTEMROOT System directory (for example, c:\winnt). This is the same as WINDIR.
WINDIR System directory (for example, c:\winnt). This is the same as SYSTEMROOT. [/list:u]
 
However, WINDIR is available as a system and process variable under W2K and as a process variable under Win9x, but SYSTEMROOT is a W2K process variable only.
 
 
 
------------------
SuperMicro P6DBS (dual UW-SCSI) BIOS 2.2, 2*Celery 300a @ 450Mhz, 384MB PC100 RAM
SCSI-A=4.3Gb+9Gb, SCSI-B=Tosh32x CD-ROM, Yamaha4416 CD-RW, Iomega ZIP100, IDE1=4.3Gb
IBM EtherJet 10/100 NIC PCI + Nortel ADSL "modem"
Matrox G400 DH 32Mb AGP + Quantum3D Voodoo2 SLI PCI (CL TNT1 AGP on a shelf)
SoundBlaster Live PCI (not Value)
Win2K build 2195 Retail (not 120-day eval)