Hi I have a few batch files here that need testing since currently something seems to be wrong with enviorment variables on my OS. Please test and tell me if they exit, do what they are made to do, etc. Also a big thanks to whoever helps me out. Removed Legends for scripts since the forum hates long lines Only Run the Attrib.cmd script please I don't want to be blamed for killing your box Attrib.cmd @ECHO OFF :START GOTO SYS REM System Drive REM -------------------------------- :SYS GOTO DANDS REM Documents And Settings REM -------------------------------- :DANDS attrib +H +S "%ALLUSERSPROFILE%\ntuser.dat" attrib +H +S "%ALLUSERSPROFILE%\ntuser.dat.log" attrib +H +S +R "%SystemDrive%\Documents And Settings\Default User\Cookies\index.dat" attrib +H +S "%USERPROFILE%\ntuser.dat" attrib +H +S "%USERPROFILE%\ntuser.dat.log" GOTO PROG REM Program Files REM -------------------------------- :PROG GOTO WIN REM Windows REM -------------------------------- :WIN attrib +H +S "%SystemRoot%\system32\config\AppEvent.Evt" attrib +H +S "%SystemRoot%\system32\config\default" attrib +H +S "%SystemRoot%\system32\config\default.LOG" attrib +H +S "%SystemRoot%\system32\config\SAM" attrib +H +S "%SystemRoot%\system32\config\SAM.LOG" attrib +H +S "%SystemRoot%\system32\config\SecEvent.Evt" attrib +H +S "%SystemRoot%\system32\config\SECURITY" attrib +H +S "%SystemRoot%\system32\config\SECURITY.LOG" attrib +H +S "%SystemRoot%\system32\config\software" attrib +H +S "%SystemRoot%\system32\config\software.LOG" attrib +H +S "%SystemRoot%\system32\config\SysEvent.Evt" attrib +H +S "%SystemRoot%\system32\config\System" attrib +H +S "%SystemRoot%\system32\config\System.LOG" attrib +H +S "%SystemRoot%\WindowsUpdate.log" attrib +H +S "%SystemRoot%\Debug\PASSWD.LOG" attrib +H +S "%SystemRoot%\SoftwareDistribution\ReportingEvents.log" attrib +H +S "%SystemRoot%\SchedLgU.Txt" GOTO POST REM Post REM -------------------------------- :POST Echo Done Changing Attributes For System Files Files pause GOTO END :END Compact.cmd @ECHO OFF :START GOTO SYS REM System Drive REM -------------------------------- :SYS GOTO DANDS REM Documents And Settings REM -------------------------------- :DANDS compact /C /S: "%AllUserSProfile%\Application Data\Microsoft\User Account Pictures\Default Pictures" GOTO PROG REM Program Files REM -------------------------------- :PROG compact /C /S: "%SystemDrive%\Program Files\Internet Explorer\Connection Wizard" GOTO WIN REM Windows REM -------------------------------- :WIN compact /C /S: "%SystemRoot%\Connection Wizard" compact /C /S: "%SystemRoot%\Downloaded Installations" compact /C /S: "%SystemRoot%\Help" compact /C /S: "%SystemRoot%\inf" compact /C /S: "%SystemRoot%\PCHealth" compact /C /S: "%SystemRoot%\repair" compact /C /S: "%SystemRoot%\SoftwareDistribution" compact /C /S: "%SystemRoot%\Web" compact /C /S: "%SystemRoot%\system32\CatRoot" compact /C /S: "%SystemRoot%\system32\CatRoot2" compact /C /S: "%SystemRoot%\system32\ias" compact /C /S: "%SystemRoot%\system32\icsxml" compact /C /S: "%SystemRoot%\system32\MsDtc" compact /C /S: "%SystemRoot%\system32\mui" compact /C /S: "%SystemRoot%\system32\npp" compact /C /S: "%SystemRoot%\system32\ras" compact /C /S: "%SystemRoot%\system32\ReinstallBackups" compact /C /S: "%SystemRoot%\system32\Restore" GOTO POST REM Post REM -------------------------------- :POST Echo Done Compressing Infrequently Used Files pause GOTO END :END Removed Rd.cmd: This can be done by editing the TXTSetup, DOSnet and layout files in your I386 dir.