jasaund70891 Posted September 5, 2003 Posted September 5, 2003 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 offECHO.ECHO Installing Windows Update ECHO Installing PC-Cillin Antivirus Softwarestart /wait %systemdrive%\install\applications\pcc\pcc.msi /qb REBOOT=SuppressECHO 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.EXITI copied it from a site and modified it.
neophyte Posted September 5, 2003 Posted September 5, 2003 %SYSTEMROOT% == c:\windows (or the root windows directory)%SYSTEMDRIVE% == the drive windows is installed to (eg, C:\)
Aaron Posted September 5, 2003 Posted September 5, 2003 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.
jasaund70891 Posted September 5, 2003 Author Posted September 5, 2003 now it makes sence thanks for you help!
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now