%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. .
Does anyone know the difference between %windir% and %systemroot%?
For those not knowing what it’s all about please don’t post any replies.
For those not knowing what it’s all about please don’t post any replies.
Participate in our website and join the conversation
This subject has been archived. New comments and votes cannot be submitted.
Apr 6
Apr 7
0
1 minute
Responses to this topic
%windir% is the Windows directory (I.E: C:\windows) and %systemroot% is the HD root dir (c:\)

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.
Both syntaxes do the same action, you may want to try it your self.
From the "windows script host reference" on MSDN...
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)
- SYSTEMROOT System directory (for example, c:\winnt). This is the same as WINDIR.
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)