Jump to content

Nmcsween

Member
  • Posts

    6
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Canada

About Nmcsween

Nmcsween's Achievements

0

Reputation

  1. The Gotos arn't needed their just there for expandability (future error checking, etc). As for changing attributes. Those files are Needed just to login. Such as "%SystemRoot%\system32\config\SAM" which is a peice of registry god knows why microsoft didn't label something windows can't boot without as non system....
  2. THANK YOU Gunsmokingman your a very productive person in this community.
  3. 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.
  4. Rephrase stupid with good and rephrase which is with which isn't. Some files are already hidden I just like to make sure nothing changed the attributes by enforcing it.
  5. @ECHO OFF REM Legend / Variables REM -------------------------------- REM + Sets an attribute. REM - Clears an attribute. REM R Read-only file attribute. REM A Archive file attribute. REM S System file attribute. REM H Hidden file attribute. REM /S Processes matching files in the current folder and all subfolders. REM /D Processes folders as well. REM System Drive REM -------------------------------- :START GOTO DANDS REM Documents And Settings REM -------------------------------- :DANDS attrib +H +S "%ALLUSERSPROFILE%\ntuser.dat" attrib +H +S "%ALLUSERSPROFILE%\ntuser.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.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 END :END exit What is wrong with this batch file? It changes attributes fine but seems to not want to exit at all...
  6. Ahem..... Bandwidth limit exceeded been going on for oh about 4 days now.....
×
×
  • Create New...