From 57626934b608ce32c25c5462f7e80852e48bb91c Mon Sep 17 00:00:00 2001 From: BigoStream <110361173+BigoStream@users.noreply.github.com> Date: Wed, 30 Nov 2022 09:23:39 +0100 Subject: [PATCH] Add: New Functions Add: Added new functions to the script. --- Documentation/changelog.md | 7 +++ Documentation/releases.md | 3 +- Scripts/CMD/pcHealth.bat | 92 +++++++++++++++++++++++++++----------- 3 files changed, 75 insertions(+), 27 deletions(-) diff --git a/Documentation/changelog.md b/Documentation/changelog.md index 1a3fcf8..cfd86e0 100644 --- a/Documentation/changelog.md +++ b/Documentation/changelog.md @@ -1,5 +1,12 @@ # Changelog.md - pcHealth +## 30-11-2022 - @BigoStream + +Added new functions to the script: +- Disk Optimilisation through the script. +- Disk Cleaning through the script. +- Trace route (tracert) through the script. + ## 22-11-2022 - @BigoStream - Full Version Release 1.5.9 Changed some colors. diff --git a/Documentation/releases.md b/Documentation/releases.md index 9418dc4..32f973d 100644 --- a/Documentation/releases.md +++ b/Documentation/releases.md @@ -6,7 +6,7 @@ For now only the version names will be displayed, in the future there might be e # Current Version(s) Full Release - v1.5.9 (Stable) -Beta Release - v1.5.7-beta +Beta Release - v1.6.0-beta Alpha Release - v0.2.1-alpha (PowerShell) ## Older Releases @@ -31,6 +31,7 @@ Here you can see a overview of the older version. ### Beta Release(s) +- Beta Release - v1.6.0-beta - Beta Release - v1.5.7-beta - Beta Release - v1.5.5-beta - Beta Release - v1.5.3-beta diff --git a/Scripts/CMD/pcHealth.bat b/Scripts/CMD/pcHealth.bat index 6b72558..54ad55a 100644 --- a/Scripts/CMD/pcHealth.bat +++ b/Scripts/CMD/pcHealth.bat @@ -29,7 +29,7 @@ if '%errorlevel%' NEQ '0' ( :-------------------------------------- :: MainCode @echo off -title pcHealth - Check your PC's Health! - version 1.5.9 +title pcHealth - Check your PC's Health! - version 1.6.0-beta cd / color D cls @@ -42,7 +42,7 @@ echo Thanks for downloading and using pcHealth! echo Please be sure that you are running this Batch file in Administrator mode. echo. echo Made by REALSDEALS - Licensed under GNU-3 (You are free to use, but not to change or to remove this line.) -echo You are now using version 1.5.9 +echo You are now using version 1.6.0-beta echo. echo %DATE%, %TIME% echo. @@ -74,17 +74,18 @@ echo Enter number 6 to generate a battery report. (Laptop only) echo Enter number 7 to open the GUI to Windows Updates. echo Enter number 8 to start a short ping test. echo Enter number 9 to start a continues ping test. -echo Enter number 10 to update system programs. -echo Enter number 11 to re-start the audio drivers of your system. -echo Enter number 12 to re-open the generated battery report file. -echo Enter number 13 to re-open the CBS.log (AKA DISM.log) -echo Enter number 14 to get your Ninite! Includes Edge, Chrome, VLC and 7Zip. -echo Enter number 15 to see your systems Windows License key. -echo Enter number 16 BIOS Password Recovery. -echo Enter number 17 to shutdown, reboot or log off from your PC/laptop. -echo Enter number 18 to open the programs menu. -echo Enter number 19 to return to the previous menu. -echo Enter number 20 to close this batch file. +echo Enter number 10 to start a trace route to Google. +echo Enter number 11 to update system programs. +echo Enter number 12 to re-start the audio drivers of your system. +echo Enter number 13 to re-open the generated battery report file. +echo Enter number 14 to re-open the CBS.log (AKA DISM.log) +echo Enter number 15 to get your Ninite! Includes Edge, Chrome, VLC and 7Zip. +echo Enter number 16 to see your systems Windows License key. +echo Enter number 17 BIOS Password Recovery. +echo Enter number 18 to shutdown, reboot or log off from your PC/laptop. +echo Enter number 19 to open the programs menu. +echo Enter number 20 to return to the previous menu. +echo Enter number 21 to close this batch file. echo ........................................................... echo. @@ -96,19 +97,22 @@ IF %B%==4 GOTO DISM IF %B%==5 GOTO SCSM IF %B%==6 GOTO BATTERY IF %B%==7 GOTO UPDATE -IF %B%==8 GOTO SHORTPING -IF %B%==9 GOTO CONTINUESPING -IF %B%==10 GOTO SYSUPDATE -IF %B%==11 GOTO AUDIORE -IF %B%==12 GOTO BATOPEN -IF %B%==13 GOTO OPENCBSLOG -IF %B%==14 GOTO NINITE -IF %B%==15 GOTO LICENSE -IF %B%==16 GOTO BIOSPW -IF %B%==17 GOTO RESHUT -IF %B%==18 GOTO PROGRAMS -IF %B%==19 GOTO MENU -IF %B%==20 GOTO CLOSE +IF %B%==8 GOTO DFR +IF %B%==9 GOTO CLMGR +IF %B%==10 GOTO SHORTPING +IF %B%==11 GOTO CONTINUESPING +IF %B%==12 GOTO TRACEGOOGLE +IF %B%==13 GOTO SYSUPDATE +IF %B%==14 GOTO AUDIORE +IF %B%==15 GOTO BATOPEN +IF %B%==16 GOTO OPENCBSLOG +IF %B%==17 GOTO NINITE +IF %B%==18 GOTO LICENSE +IF %B%==19 GOTO BIOSPW +IF %B%==20 GOTO RESHUT +IF %B%==21 GOTO PROGRAMS +IF %B%==22 GOTO MENU +IF %B%==23 GOTO CLOSE :PROGRAMS cls @@ -274,6 +278,28 @@ IF %L%==1 GOTO TOOLS IF %L%==2 GOTO MENU IF %L%==3 GOTO CLOSE +:DFR +cls +color 0A +dfrgui.exe +pause +echo. +SET /P LK=Enter number 1 to return to the previous sub-menu, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: +IF %L%==1 GOTO TOOLS +IF %L%==2 GOTO MENU +IF %L%==3 GOTO CLOSE + +:CLMGR +cls +color 0A +cleanmgr.exe +pause +echo. +SET /P LKT=Enter number 1 to return to the previous sub-menu, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: +IF %L%==1 GOTO TOOLS +IF %L%==2 GOTO MENU +IF %L%==3 GOTO CLOSE + :SHORTPING cls color 0A @@ -297,6 +323,20 @@ IF %N%==1 GOTO TOOLS IF %N%==2 GOTO MENU IF %N%==2 GOTO CLOSE +:TRACEGOOGLE +cls +color 0A +echo. +echo Starting a trace route to Google with a maximum of '30' hops. +echo. +tracert www.google.com +pause +echo. +SET /P NM=Enter number 1 to return to the previous sub-menu menu, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: +IF %NM%==1 GOTO TOOLS +IF %NM%==2 GOTO MENU +IF %NM%==3 GOTO CLOSE + :AUDIORE cls color 0A