%windir% versus %systemroot%

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 ,


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 on our website and join the conversation

You have already an account on our website? Use the link below to login.
Login
Create a new user account. Registration is free and takes only a few seconds.
Register
This topic is archived. New comments cannot be posted and votes cannot be cast.

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)