bmrf / tron

Tron

Home Page:https://old.reddit.com/r/TronScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[REQUEST] Make sfc scannow optional

ptrkhh opened this issue · comments

From my experience, sfc scannow is one of the most time consuming part of this script, and for those who uses this script on a new Windows install, it is not necessary to use sfc scannow as the Windows OS was just completely installed beforehand.

EDIT: Also the /scanhealth

Referring to this?

:: JOB: System File Checker (SFC) scan
title Tron v%TRON_VERSION% [stage_4_repair] [SFC Scan]
call functions\log_with_date.bat " Launch job 'System File Checker'..."
if /i %DRY_RUN%==no (
REM Basically this says "If OS is NOT XP or 2003, go ahead and run system file checker." We skip SFC on XP/2k3 because it forces a reboot
if %WIN_VER_NUM% geq 6.0 (
%SystemRoot%\System32\sfc.exe /scannow
%FINDSTR% /c:"[SR]" %SystemRoot%\logs\cbs\cbs.log>> "%LOGPATH%\%LOGFILE%" 2>NUL
)
)
call functions\log_with_date.bat " Done."

Yes, precisely.

Iirc there's also scanhealth somewhere after that (not sure though), it's also time consuming

I thought over this for a bit, and I think because the purpose of Tron is to repair/rescue infected or sluggish systems, and the development philosophy of the project is "more time to do it right vs. less time and be less thorough" I'm going to leave it in as a default. Of course, you can always just delete that block of code in your copy of Tron and it'll be skipped entirely.

One additional thing to note, I understand a lot of people use Tron to de-bloat a fresh Windows install, is each sub-stage script supports standalone execution, so you can just manually run the Stage 2 and Stage 4 (the two most popular stages) scripts on a fresh system.