Jump to content
Compatible Support Forums
Sign in to follow this  
Mangan

%windir% versus %systemroot%

Recommended Posts

Does anyone know the difference between %windir% and %systemroot%?

For those not knowing what it’s all about please don’t post any replies.

Share this post


Link to post

%windir% is the Windows directory (I.E: C:\windows) and %systemroot% is the HD root dir (c:\)

Share this post


Link to post

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.

Share this post


Link to post

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)

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×