Jump to content

differance between %systemroot% and %systemdrive%


Recommended Posts

what is the differance between %systemroot% and %systemdrive%? reason I'm asking is that I have this script to install pccillin off the windows xp installation cd and I try to run it manualy off the cd and it keep trying to look in c:\install\applications\pcc not e:\$oem$\$1\install\applications\pcc.

application.cmd:

CLS

@echo off

ECHO.

ECHO Installing Windows Update

ECHO Installing PC-Cillin Antivirus Software

start /wait %systemdrive%\install\applications\pcc\pcc.msi /qb REBOOT

=Suppress

ECHO Restarting the PC in 1 minute...

psshutdown.exe -r -t 90 -f -m "Windows XP will now restart in 1 minute,

this will give enough time for the shortcuts to update and for the

shell to fully load before its ready to restart!"

ECHO.

ECHO Deleting Temp Installation Files...

RD /S /Q %systemdrive%\install <--is this necessary?

RD /S /Q %systemdrive%\Drivers <--is this necessary?

RD /S /Q %systemdrive%\nvidia45_24 <--is this necessary?

ECHO.

EXIT

I copied it from a site and modified it.

Link to post
Share on other sites

what is the differance between %systemroot% and %systemdrive%? reason I'm asking is that I have this script to install pccillin off the windows xp installation cd and I try to run it manualy off the cd and it keep trying to look in c:\install\applications\pcc not e:\$oem$\$1\install\applications\pcc.

This is because the purpose of the $OEM$ and sub folders is that they get copied over to the hard disk during text-mode Windows XP setup. For example, everything in $1 will be copied to C:\ and anything in $$ will be copied to C:\Windows, there are more different types that can be used to instruct setup where it should copy files to.

ECHO.

ECHO Deleting Temp Installation Files...

RD /S /Q %systemdrive%\install                  <--is this necessary?

RD /S /Q %systemdrive%\Drivers            <--is this necessary?

RD /S /Q %systemdrive%\nvidia45_24      <--is this necessary?

ECHO.

Unless you prefer to delete them manually? These files were copied over (as mentioned earlier) and has already been used to install your extras, so you no longer need them left on your hard drive.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...