Skip to content

Commit

Permalink
update for new -pmb switch
Browse files Browse the repository at this point in the history
  • Loading branch information
vocatus authored Apr 25, 2020
1 parent 154b713 commit ca16b00
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions tron.bat
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
:: Program: "That's Tron. He fights for the User."
:: Requirements: Run from the current users desktop. Run as Administrator.
:: Author: vocatus on reddit.com/r/TronScript ( vocatus.gate at gmail ) // PGP key: 0x07d1490f82a211a2
:: Version: 1.1.9 + Add REMOVE_MALWAREBYTES (-rmb) switch to have Tron automatically remove Malwarebytes at the end of the run. Thanks to tbr:greg
:: Version: 1.2.0 / Change REMOVE_MALWAREBYTES to PRESERVE_MALWAREBYTES (-pmb)
:: 1.1.9 + Add REMOVE_MALWAREBYTES (-rmb) switch to have Tron automatically remove Malwarebytes at the end of the run. Thanks to tbr:greg
:: + Add SKIP_COOKIE_CLEANUP (-scc) switch to have Tron preserve ALL cookies. Thanks to tbr:sebastian
:: 1.1.8 / Rename all instances of "argument(s)" to "switch(es)" to maintain project consistency
:: 1.1.7 + Add value of WIN_VER_NUM to -c output
Expand Down Expand Up @@ -57,8 +58,8 @@ SETLOCAL
:: PREP AND CHECKS ::
:::::::::::::::::::::
color 0f
set SCRIPT_VERSION=1.1.9
set SCRIPT_DATE=2020-02-05
set SCRIPT_VERSION=1.2.0
set SCRIPT_DATE=2020-04-25

:: Get in the correct drive (~d0) and path (~dp0). Sometimes needed when run from a network or thumb drive.
:: We stay in the \resources directory for the rest of the script
Expand Down Expand Up @@ -160,8 +161,8 @@ if /i %CONFIG_DUMP%==yes (
echo NO_PAUSE: %NO_PAUSE%
echo PRESERVE_METRO_APPS: %PRESERVE_METRO_APPS%
echo PRESERVE_POWER_SCHEME: %PRESERVE_POWER_SCHEME%
echo PRESERVE_MALWAREBYTES: %PRESERVE_MALWAREBYTES%
echo QUARANTINE_PATH: %QUARANTINE_PATH%
echo REMOVE_MALWAREBYTES: %REMOVE_MALWAREBYTES%
echo SELF_DESTRUCT: %SELF_DESTRUCT%
echo SKIP_ANTIVIRUS_SCANS: %SKIP_ANTIVIRUS_SCANS%
echo SKIP_APP_PATCHES: %SKIP_APP_PATCHES%
Expand Down Expand Up @@ -659,8 +660,8 @@ call functions\log.bat " Logfile: %LOGPATH%\%LOGFILE%"
call functions\log.bat " Warnings detected?: %WARNINGS_DETECTED%"
call functions\log.bat " Debug logs uploaded?: %UPLOAD_DEBUG_LOGS%"
call functions\log.bat " Free space before Tron run: %FREE_SPACE_BEFORE% MB"
call functions\log.bat " Free space after Tron run: %FREE_SPACE_AFTER% GB"
call functions\log.bat " Disk space reclaimed: %FREE_SPACE_SAVED% GB *"
call functions\log.bat " Free space after Tron run: %FREE_SPACE_AFTER% MB"
call functions\log.bat " Disk space reclaimed: %FREE_SPACE_SAVED% MB *"
call functions\log.bat ""
call functions\log.bat " * If you see negative disk space don't panic. Due to how some of Tron's"
call functions\log.bat " functions work, actual space reclaimed will not be visible until after"
Expand Down Expand Up @@ -761,8 +762,8 @@ for %%i in (%*) do (
if /i %%i==-np set NO_PAUSE=yes
if /i %%i==-o set AUTO_SHUTDOWN=yes
if /i %%i==-p set PRESERVE_POWER_SCHEME=yes
if /i %%i==-pmb set PRESERVE_MALWAREBYTES=no
if /i %%i==-r set AUTO_REBOOT_DELAY=15
if /i %%i==-rmb set REMOVE_MALWAREBYTES=no
if /i %%i==-sa set SKIP_ANTIVIRUS_SCANS=yes
if /i %%i==-sap set SKIP_APP_PATCHES=yes
if /i %%i==-scs set SKIP_CUSTOM_SCRIPTS=yes
Expand Down Expand Up @@ -794,7 +795,7 @@ goto :eof
echo Tron v%TRON_VERSION% ^(%TRON_DATE%^)
echo Author: vocatus on old.reddit.com/r/TronScript
echo.
echo Usage: tron.bat ^[ ^[-a^|-asm^] -c -d -dev -e -er -m -np -o -p -r -rmb -sa -sap -scc -scs -sd
echo Usage: tron.bat ^[ ^[-a^|-asm^] -c -d -dev -e -er -m -np -o -p -pmb -r -sa -sap -scc -scs -sd
echo -sdb -sdc -sdu -se -sk -sm -sor -spr -ss -str -swu -swo -udl -v -x^] ^| ^[-h^]
echo.
echo Optional switches ^(can be combined^):
Expand All @@ -810,8 +811,8 @@ goto :eof
echo -np Skip pause at the end of the script
echo -o Power off after running ^(overrides -r^)
echo -p Preserve power settings ^(don't reset to Windows default^)
echo -pmb Preserve Malwarebytes ^(don't uninstall it^) after Tron is complete
echo -r Reboot automatically 15 seconds after script completion
echo -rmb Remove Malwarebytes ^(uninstall it^) after Tron is complete
echo -sa Skip ALL anti-virus scans ^(KVRT, MBAM, SAV^)
echo -sap Skip application patches ^(don't patch 7-Zip or Adobe Flash^)
echo -scs Skip custom scripts ^(has no effect if you haven't supplied custom scripts^)
Expand Down

0 comments on commit ca16b00

Please sign in to comment.