From 043966dbc77c2dd657f98815ff48d56e4b664838 Mon Sep 17 00:00:00 2001 From: BigoStream <54169638+REALSDEALS@users.noreply.github.com> Date: Tue, 28 Mar 2023 13:42:49 +0200 Subject: [PATCH 1/8] Update: Version Control Update: Updated the version numbers in the documentation and scripts. --- Documentation/changelog.md | 2 ++ Documentation/releases.md | 4 +++- Scripts/PowerShell/pcHealth.ps1 | 4 ++-- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Documentation/changelog.md b/Documentation/changelog.md index 422d2b1..775e77b 100644 --- a/Documentation/changelog.md +++ b/Documentation/changelog.md @@ -7,6 +7,8 @@ It is now possible to use the 5th and 6th function. --> The 5th function is almost the same as the 5th function from the pcHealth.bat script. --> The 6th function will open the log after the 5th function has been ran. +Updated documentation regarding to version numbers etc. + ## 26-01-2023 - @BigoStream Centered the title from the menu that you are currently in. diff --git a/Documentation/releases.md b/Documentation/releases.md index 05ce923..31c913c 100644 --- a/Documentation/releases.md +++ b/Documentation/releases.md @@ -7,7 +7,7 @@ For now only the version names will be displayed, in the future there might be e Full Release - v1.5.9 (Stable) Beta Release - v1.6.5-beta -Alpha Release - v0.2.1-alpha (PowerShell) +Alpha Release - v0.3.0-alpha (PowerShell) ## Older Releases @@ -72,5 +72,7 @@ Here you can see a overview of the older version. ### Alpha Release(s) - pcHealth.ps1 +- Alpha Release - v0.3.0-alpha +- Alpha Release - v0.2.1-alpha - Alpha Release - v0.1.1-alpha - Alpha Release - v0.1.0-alpha \ No newline at end of file diff --git a/Scripts/PowerShell/pcHealth.ps1 b/Scripts/PowerShell/pcHealth.ps1 index 4731b5f..dcf0563 100644 --- a/Scripts/PowerShell/pcHealth.ps1 +++ b/Scripts/PowerShell/pcHealth.ps1 @@ -5,7 +5,7 @@ Write-Host "" Write-Host "This PowerShell script is made by REALSDEALS" Write-Host "Licensed under GNU-3 (You are free to use, but not to change or to remove this line.)" Write-Host "" -Write-Host "You are now using PowerShell version v0.2.1-alpha" +Write-Host "You are now using PowerShell version v0.3.0-alpha" Write-Host "" cd c:/ @@ -22,7 +22,7 @@ function isAdmin { function Show-Menu { param ( - [string]$Title = 'pcHealth | v0.2.1-alpha' + [string]$Title = 'pcHealth | v0.3.0-alpha' ) Clear-Host Write-Host "" From 2606e5ce9971fd1a26aab8227651d1120ce26022 Mon Sep 17 00:00:00 2001 From: BigoStream <54169638+REALSDEALS@users.noreply.github.com> Date: Tue, 11 Apr 2023 10:29:00 +0200 Subject: [PATCH 2/8] Add: User defined Trace and Ping Add: Added the user definable trace and ping function. So the user can choose a url to their likings to trace and ping. --- Documentation/changelog.md | 4 ++ Documentation/releases.md | 3 +- Scripts/CMD/pcHealth.bat | 79 ++++++++++++++++++++++++++------------ 3 files changed, 61 insertions(+), 25 deletions(-) diff --git a/Documentation/changelog.md b/Documentation/changelog.md index 775e77b..1b675cd 100644 --- a/Documentation/changelog.md +++ b/Documentation/changelog.md @@ -1,5 +1,9 @@ # Changelog.md - pcHealth +## 11-04-2023 - @REALSDEALS + +Added a function so the user can designate his/her own url to trace/ping. + ## 29-03-2023 - @REALSDEALS Added some new functionality to the PowerShell script. diff --git a/Documentation/releases.md b/Documentation/releases.md index 31c913c..519a157 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.6.5-beta +Beta Release - v1.6.6-beta Alpha Release - v0.3.0-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.6-beta - Beta Release - v1.6.5-beta - Beta Release - v1.6.4-beta - Beta Release - v1.6.3-beta diff --git a/Scripts/CMD/pcHealth.bat b/Scripts/CMD/pcHealth.bat index aaeaa3a..2a173f8 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.6.5-beta +title pcHealth - Check your PC's Health! - version 1.6.6-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.6.5-beta +echo You are now using version 1.6.6-beta echo. echo %DATE%, %TIME% echo. @@ -81,17 +81,18 @@ echo Enter number 9 to start Disk cleaner to clean your drive(s). (Windows Funct echo Enter number 10 to start a short ping test. echo Enter number 11 to start a continues ping test. echo Enter number 12 to start a trace route to Google. -echo Enter number 13 to update system programs. -echo Enter number 14 to re-start the audio drivers of your system. -echo Enter number 15 to re-open the generated battery report file. -echo Enter number 16 to re-open the CBS.log (AKA DISM.log) -echo Enter number 17 to get your Ninite! Includes Edge, Chrome, VLC and 7Zip. -echo Enter number 18 to see your systems Windows License key. -echo Enter number 19 BIOS Password Recovery. -echo Enter number 20 to shutdown, reboot or log off from your PC/laptop. -echo Enter number 21 to open the programs menu. -echo Enter number 22 to return to the previous menu. -echo Enter number 23 to close this batch file. +echo Enter number 13 to start a trace route to a designated place. +echo Enter number 14 to update system programs. +echo Enter number 15 to re-start the audio drivers of your system. +echo Enter number 16 to re-open the generated battery report file. +echo Enter number 17 to re-open the CBS.log (AKA DISM.log) +echo Enter number 18 to get your Ninite! Includes Edge, Chrome, VLC and 7Zip. +echo Enter number 19 to see your systems Windows License key. +echo Enter number 20 BIOS Password Recovery. +echo Enter number 21 to shutdown, reboot or log off from your PC/laptop. +echo Enter number 22 to open the programs menu. +echo Enter number 23 to return to the previous menu. +echo Enter number 24 to close this batch file. echo ........................................................... echo. @@ -108,17 +109,18 @@ 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 +IF %B%==13 GOTO TRACEDESIG +IF %B%==14 GOTO SYSUPDATE +IF %B%==15 GOTO AUDIORE +IF %B%==16 GOTO BATOPEN +IF %B%==17 GOTO OPENCBSLOG +IF %B%==18 GOTO NINITE +IF %B%==19 GOTO LICENSE +IF %B%==20 GOTO BIOSPW +IF %B%==21 GOTO RESHUT +IF %B%==22 GOTO PROGRAMS +IF %B%==23 GOTO MENU +IF %B%==24 GOTO CLOSE :PROGRAMS cls @@ -345,6 +347,35 @@ IF %NM%==1 GOTO TOOLS IF %NM%==2 GOTO MENU IF %NM%==3 GOTO CLOSE +:TRACEDESIG +cls +color 0A +echo. +echo Please enter a URL to start a trace route: (example: www.google.com) +echo. +set /p ip=Tell me your target: +echo %ip% +pause +IF "%ip%" equ "" ( + cls & color 4f + echo This is not a correct URL or route to trace, please try again. + pause + exit + ) ELSE ( + cls + echo Code will be executed, give it a hot minute... + echo tracing... + tracert %IP% > "C:\trace-%ip%.txt" + echo pinging... + ping %IP% > "C:\ping-%ip%.txt" + ) + pause + SET /P OPEN=Enter 1 to open the folder were the text files (logs) are being stored, enter 2 to return to the main menu or enter number 3 to close the script. Enter: + IF %XX%==1 start %windir%\explorer.exe "C:\" + IF %XX%==2 GOTO MENU + IF %XX%==3 GOTO CLOSE + + :AUDIORE cls color 0A From 76d006ec190ae4985acdf7f08ca1f7d3e8a12df1 Mon Sep 17 00:00:00 2001 From: Sten Tijhuis <102481635+Stensel8@users.noreply.github.com> Date: Thu, 25 May 2023 13:50:20 +0200 Subject: [PATCH 3/8] Fixed a bug. Fixed the following: Tracer log file | Bugg | pcHealth #151 --- Scripts/CMD/pcHealth.bat | 172 ++++++++++++++++++++------------------- 1 file changed, 89 insertions(+), 83 deletions(-) diff --git a/Scripts/CMD/pcHealth.bat b/Scripts/CMD/pcHealth.bat index 2a173f8..47aea84 100644 --- a/Scripts/CMD/pcHealth.bat +++ b/Scripts/CMD/pcHealth.bat @@ -26,7 +26,7 @@ if '%errorlevel%' NEQ '0' ( :gotAdmin pushd "%CD%" CD /D "%~dp0" -:-------------------------------------- +:-------------------------------------- :: MainCode @echo off title pcHealth - Check your PC's Health! - version 1.6.6-beta @@ -55,7 +55,7 @@ echo Enter number 5 to close this batch script. echo ........................................................... echo. -SET /P A=Type one of the numbers from the menu above to open the desired menu and then press ENTER. Enter: +SET /P A=Type one of the numbers from the menu above to open the desired menu and then press ENTER. Enter: IF %A%==1 GOTO TOOLS IF %A%==2 GOTO PROGRAMS IF %A%==3 GOTO PCHEALTHGETVER @@ -63,7 +63,7 @@ IF %A%==4 GOTO PRERELEASE IF %A%==5 GOTO CLOSE :TOOLS -cls +cls color 09 echo. echo You are now in the Tools menu: @@ -96,7 +96,7 @@ echo Enter number 24 to close this batch file. echo ........................................................... echo. -SET /P B=Type one of the numbers from the menu above to run the desired function, then press ENTER. Enter: +SET /P B=Type one of the numbers from the menu above to run the desired function, then press ENTER. Enter: IF %B%==1 GOTO SYSINFO IF %B%==2 GOTO CPUANDGPUINFO IF %B%==3 GOTO SCAN @@ -111,7 +111,7 @@ IF %B%==11 GOTO CONTINUESPING IF %B%==12 GOTO TRACEGOOGLE IF %B%==13 GOTO TRACEDESIG IF %B%==14 GOTO SYSUPDATE -IF %B%==15 GOTO AUDIORE +IF %B%==15 GOTO AUDIORE IF %B%==16 GOTO BATOPEN IF %B%==17 GOTO OPENCBSLOG IF %B%==18 GOTO NINITE @@ -140,7 +140,7 @@ echo Enter number 8 to close the script. echo ........................................................... echo. -SET /P AB=Type one of the numbers above to run the desired function. Enter: +SET /P AB=Type one of the numbers above to run the desired function. Enter: IF %AB%==1 GOTO HARDINFODOWN IF %AB%==2 GOTO ADWCLEANER IF %AB%==3 GOTO DISKINFODOWN @@ -156,7 +156,7 @@ color 0A winget upgrade --all pause echo. -SET /P LL=Enter number 1 to return to the sub-menu, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: +SET /P LL=Enter number 1 to return to the sub-menu, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: IF %LL%==1 GOTO TOOLS IF %LL%==2 GOTO MENU IF %LL%==3 GOTO CLOSE @@ -167,7 +167,7 @@ color 0A systeminfo pause echo. -SET /P C=Enter number 1 to return to the sub-menu, enter number 2 to go back to the main menu or enter number 3 to close the script. Enter: +SET /P C=Enter number 1 to return to the sub-menu, enter number 2 to go back to the main menu or enter number 3 to close the script. Enter: IF %C%==1 GOTO TOOLS IF %C%==2 GOTO MENU IF %C%==3 GOTO CLOSE @@ -178,7 +178,7 @@ color 0A sfc /scannow pause echo. -SET /P D=If the scan found any corrupt files, enter number 1 to check the .log, enter number 2 to return to the previous sub-menu, enter number 3 when you want to return to the menu or enter number 4 to close the script. Enter: +SET /P D=If the scan found any corrupt files, enter number 1 to check the .log, enter number 2 to return to the previous sub-menu, enter number 3 when you want to return to the menu or enter number 4 to close the script. Enter: IF %D%==1 GOTO OPENCBSLOG IF %D%==2 GOTO TOOLS IF %D%==3 GOTO MENU @@ -186,8 +186,8 @@ IF %D%==4 GOTO CLOSE :CPUANDGPUINFO cls -color 0A -echo. +color 0A +echo. echo Your CPU information: echo. wmic cpu get caption, deviceid, name, numberofcores, maxclockspeed, status @@ -197,7 +197,7 @@ echo. wmic path win32_VideoController get name pause echo. -SET /P E=Enter number 1 to return to the sub-menu, enter number 2 to go back to the main menu or enter number 3 to close the script. Enter: +SET /P E=Enter number 1 to return to the sub-menu, enter number 2 to go back to the main menu or enter number 3 to close the script. Enter: IF %E%==1 GOTO TOOLS IF %E%==2 GOTO MENU IF %E%==3 GOTO CLOSE @@ -209,7 +209,7 @@ DISM /online /cleanup-image /checkhealth DISM /online /cleanup-image /scanhealth pause echo. -SET /P F=Enter number 1 to start an attempt on repairing, enter number 2 to return to the previous sub-menu, number 3 for the main-menu or number 4 to exit the script. Enter: +SET /P F=Enter number 1 to start an attempt on repairing, enter number 2 to return to the previous sub-menu, number 3 for the main-menu or number 4 to exit the script. Enter: IF %F%==1 GOTO DISMRESTORE IF %F%==2 GOTO TOOLS IF %F%==3 GOTO MENU @@ -221,7 +221,7 @@ color 0A DISM /online /cleanup-image /restorehealth pause echo. -SET /P G=Enter number 1 to return to the sub-menu, enter number 2 to go back to the main menu or enter number 3 to close the script. Enter: +SET /P G=Enter number 1 to return to the sub-menu, enter number 2 to go back to the main menu or enter number 3 to close the script. Enter: IF %G%==1 GOTO TOOLS IF %G%==2 GOTO MENU IF %G%==3 GOTO CLOSE @@ -232,7 +232,7 @@ color 0A sfc /scannow pause echo. -SET /P H=If the scan found any corrupt files, enter number 1 to check the .log, enter number 2 to start an attempt to repair the corrupt/missing files,enter number 3 to return to the previous sub-menu, enter number 4 to return to the main-menu or enter number 5 to exit the script. Enter: +SET /P H=If the scan found any corrupt files, enter number 1 to check the .log, enter number 2 to start an attempt to repair the corrupt/missing files,enter number 3 to return to the previous sub-menu, enter number 4 to return to the main-menu or enter number 5 to exit the script. Enter: IF %H%==1 GOTO SCSMOPENLOG IF %H%==2 GOTO CONTINUE IF %H%==3 GOTO TOOLS @@ -245,7 +245,7 @@ color 0A start %windir%\explorer.exe "C:\Windows\Logs\CBS\CBS.log" pause echo. -SET /P I=Enter number 1 to start an attempt to repair the corrupt/missing files, if any are found... Enter number 2 to return to the previous sub-menu, enter number 3 to return to the main-menu or enter number 4 to exit the script. Enter: +SET /P I=Enter number 1 to start an attempt to repair the corrupt/missing files, if any are found... Enter number 2 to return to the previous sub-menu, enter number 3 to return to the main-menu or enter number 4 to exit the script. Enter: IF %I%==1 GOTO CONTINUE IF %I%==2 GOTO TOOLS IF %I%==3 GOTO MENU @@ -260,7 +260,7 @@ pause DISM /online /cleanup-image /restorehealth pause echo. -SET /P J=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. Enter: +SET /P J=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. Enter: IF %J%==1 GOTO TOOLS IF %J%==2 GOTO MENU IF %J%==3 GOTO CLOSE @@ -271,7 +271,7 @@ color 0A powercfg /batteryreport pause echo. -SET /P K=Enter number 1 to open the generated file, enter number 2 to return to the previous sub-menu, number 3 to return to the main-menu or enter number 4 to exit the script. Enter: +SET /P K=Enter number 1 to open the generated file, enter number 2 to return to the previous sub-menu, number 3 to return to the main-menu or enter number 4 to exit the script. Enter: IF %K%==1 GOTO BATOPEN IF %K%==2 GOTO TOOLS IF %K%==3 GOTO MENU @@ -283,7 +283,7 @@ color 0A control update pause echo. -SET /P L=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: +SET /P L=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 @@ -291,10 +291,10 @@ IF %L%==3 GOTO CLOSE :DFR cls color 0A -dfrgui.exe +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: +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 @@ -304,8 +304,8 @@ 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: +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 @@ -313,10 +313,10 @@ IF %L%==3 GOTO CLOSE :SHORTPING cls color 0A -ping 8.8.8.8 +ping 8.8.8.8 pause echo. -SET /P M=Enter number 1 to return to the previous sub-menu, enter number 2 to return to the main-menu, enter number 3 to start a continues ping test or enter number 4 to exit the script. Enter: +SET /P M=Enter number 1 to return to the previous sub-menu, enter number 2 to return to the main-menu, enter number 3 to start a continues ping test or enter number 4 to exit the script. Enter: IF %M%==1 GOTO TOOLS IF %M%==2 GOTO MENU IF %M%==3 GOTO CONTINUESPING @@ -328,7 +328,7 @@ color 0A ping 8.8.8.8 -t -l 256 pause echo. -SET /P N=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: +SET /P N=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 %N%==1 GOTO TOOLS IF %N%==2 GOTO MENU IF %N%==2 GOTO CLOSE @@ -342,7 +342,7 @@ 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: +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 @@ -350,10 +350,10 @@ IF %NM%==3 GOTO CLOSE :TRACEDESIG cls color 0A -echo. +echo. echo Please enter a URL to start a trace route: (example: www.google.com) echo. -set /p ip=Tell me your target: +set /p ip=Tell me your target: echo %ip% pause IF "%ip%" equ "" ( @@ -370,16 +370,22 @@ IF "%ip%" equ "" ( ping %IP% > "C:\ping-%ip%.txt" ) pause - SET /P OPEN=Enter 1 to open the folder were the text files (logs) are being stored, enter 2 to return to the main menu or enter number 3 to close the script. Enter: - IF %XX%==1 start %windir%\explorer.exe "C:\" - IF %XX%==2 GOTO MENU - IF %XX%==3 GOTO CLOSE + SET /P OPEN=Enter 1 to open the folder were the text files (logs) are being stored, enter 2 to return to the main menu or enter number 3 to close the script. Enter: +IF %OPEN%==1 ( + start %windir%\explorer.exe "C:\" + pause + GOTO MENU + ) + IF %OPEN%==2 GOTO MENU + IF %OPEN%==3 GOTO CLOSE + + :AUDIORE cls color 0A -if "%1"=="am_admin" (powershell start -verb runas '%0' am_admin) +if "%1"=="am_admin" (powershell start -verb runas '%0' am_admin) net stop audiosrv net stop AudioEndPointBuilder net start AudioEndPointBuilder @@ -396,7 +402,7 @@ color 0A start %windir%\explorer.exe "C:\battery-report.html" pause echo. -SET /P O=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: +SET /P O=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 %O%==1 GOTO TOOLS IF %O%==2 GOTO MENU IF %O%==3 GOTO CLOSE @@ -407,7 +413,7 @@ color 0A start %windir%\explorer.exe "C:\Windows\Logs\CBS\CBS.log" pause echo. -SET /P P=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: +SET /P P=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 %P%==1 GOTO TOOLS IF %P%==2 GOTO MENU IF %P%==3 GOTO CLOSE @@ -415,10 +421,10 @@ IF %P%==3 GOTO CLOSE :NINITE cls color 0A -start "" https://ninite.com/7zip-chrome-edge-vlc/ninite.exe +start "" https://ninite.com/7zip-chrome-edge-vlc/ninite.exe pause echo. -SET /P Q=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: +SET /P Q=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 %Q%==1 GOTO TOOLS IF %Q%==2 GOTO MENU IF %Q%==3 GOTO CLOSE @@ -436,7 +442,7 @@ echo If it didn't showed a key, it is possible that this PC is using a 'illegal' echo. echo You can also try to use a different script for the license key, you can find it in the 'Scripts' folder in this pcHealth folder! echo. -SET /p R=If you want to return to the previous sub-menu, enter number 1. To return to the main-menu, enter number 2. To exit the script, enter the number 3. Enter: +SET /p R=If you want to return to the previous sub-menu, enter number 1. To return to the main-menu, enter number 2. To exit the script, enter the number 3. Enter: IF %R%==1 GOTO TOOLS IF %R%==2 GOTO MENU IF %R%==2 GOTO CLOSE @@ -447,23 +453,23 @@ color 0E echo. echo The BIOS Password Recovery tool is a website that can be used to gather/generate a recovery code for the BIOS. echo. -echo If you don't know how to use this function/website, then +echo If you don't know how to use this function/website, then echo I would suggest that you enter '2' on the next line to learn more. -echo. +echo. echo The credits for this function and repository goes to the owner: @bacher09 echo. -SET /P SK=Enter number 1 to visit the website, enter number 2 to go to the repository of BIOS-PW and learn more! Enter number 3 to return to the sub-menu, enter number 4 to return to the main-menu or enter number 5 to close the script. Enter: +SET /P SK=Enter number 1 to visit the website, enter number 2 to go to the repository of BIOS-PW and learn more! Enter number 3 to return to the sub-menu, enter number 4 to return to the main-menu or enter number 5 to close the script. Enter: IF %SK%==1 start "" https://bios-pw.org && GOTO BIOSPW IF %SK%==2 start "" https://github.com/bacher09/pwgen-for-bios && GOTO BIOSPW IF %SK%==3 GOTO TOOLS IF %SK%==4 GOTO MENU -IF %SK%==5 GOTO CLOSE +IF %SK%==5 GOTO CLOSE :RESHUT cls color 0A -echo. -SET /P S=If you want to log off from your PC/Laptop enter number 1, to restart enter number 2, to shutdown enter number 3 and to return to the previous sub-menu enter number 4 or to exit the script... enter number 5. Enter: +echo. +SET /P S=If you want to log off from your PC/Laptop enter number 1, to restart enter number 2, to shutdown enter number 3 and to return to the previous sub-menu enter number 4 or to exit the script... enter number 5. Enter: IF %S%==1 GOTO LOGOFF1 IF %S%==2 GOTO RESTART2 IF %S%==3 GOTO SHUTDOWN3 @@ -472,25 +478,25 @@ IF %S%==5 GOTO CLOSE :LOGOFF1 cls -color 0A -echo. -SET /P T=Are you sure that you want to log off your PC? Enter number 1, enter number 2 to return to the previous sub-menu, enter number 3 to return to the main-menu or enter number 4 to exit the script. Enter: +color 0A +echo. +SET /P T=Are you sure that you want to log off your PC? Enter number 1, enter number 2 to return to the previous sub-menu, enter number 3 to return to the main-menu or enter number 4 to exit the script. Enter: IF %T%==1 GOTO LOGOFFCONFIRM1 IF %T%==2 GOTO TOOLS -IF %T%==3 GOTO MENU +IF %T%==3 GOTO MENU IF %T%==4 GOTO CLOSE :LOGOFFCONFIRM1 cls -color 0A -shutdown /l +color 0A +shutdown /l EXIT /B :RESTART2 cls color 0A echo. -SET /P U=Are you sure that you want to restart your PC? Enter number 1, to do so. Enter number 2 to return to the previous sub-menu, enter number 3 to return to the main-menu or enter number 4 to exit the script. Enter: +SET /P U=Are you sure that you want to restart your PC? Enter number 1, to do so. Enter number 2 to return to the previous sub-menu, enter number 3 to return to the main-menu or enter number 4 to exit the script. Enter: IF %U%==1 GOTO RESTARTCONFIRM2 IF %U%==2 GOTO TOOLS IF %U%==3 GOTO MENU @@ -498,17 +504,17 @@ IF %U%==4 GOTO CLOSE :RESTARTCONFIRM2 cls -color 0A +color 0A shutdown /r EXIT /B :SHUTDOWN3 cls color 0A -echo. -SET /P V=Are you sure that you want to shutdown your PC? Enter number 1, to continue. Enter number 2 to return to the previous sub-menu, enter number 3 to return to the main-menu or enter number 4 to exit the script. Enter: +echo. +SET /P V=Are you sure that you want to shutdown your PC? Enter number 1, to continue. Enter number 2 to return to the previous sub-menu, enter number 3 to return to the main-menu or enter number 4 to exit the script. Enter: IF %V%==1 GOTO SHUTDOWNCONFIRM3 -IF %V%==2 GOTO TOOLS +IF %V%==2 GOTO TOOLS IF %V%==3 GOTO MENU IF %V%==4 GOTO CLOSE @@ -524,7 +530,7 @@ color 0A echo. echo Are you sure that you want to download the newest version of pcHealth? echo. -SET /P AC=If yes, enter the number 1, if not enter number 2 to return to the previous sub-menu or enter number 3 to navigate to the repository itself and fetch your own download there. Enter: +SET /P AC=If yes, enter the number 1, if not enter number 2 to return to the previous sub-menu or enter number 3 to navigate to the repository itself and fetch your own download there. Enter: IF %AC%==1 GOTO PCHEALTHGETVERDOWNLOADLINK IF %AC%==2 GOTO MENU IF %AC%==3 GOTO PCHEALTHGOTOREPO @@ -535,9 +541,9 @@ color 0A echo. echo Your download will start now! echo. -start "" https://github.com/REALSDEALS/pcHealth/archive/refs/heads/main.zip +start "" https://github.com/REALSDEALS/pcHealth/archive/refs/heads/main.zip echo. -SET /P AD=To return to the sub-menu enter 1, to return to the main menu enter 2 or to close the script enter 3. Enter: +SET /P AD=To return to the sub-menu enter 1, to return to the main menu enter 2 or to close the script enter 3. Enter: IF %AD%==1 GOTO PROGRAMS IF %AD%==2 GOTO MENU IF %AD%==3 GOTO CLOSE @@ -550,19 +556,19 @@ echo You will be redirected to the repository to fetch your own download. echo. start "" https://github.com/REALSDEALS/pcHealth echo. -SET /P AP=To return to the sub-menu enter 1, to return to the main menu enter 2 or to close the script enter 3. Enter: +SET /P AP=To return to the sub-menu enter 1, to return to the main menu enter 2 or to close the script enter 3. Enter: IF %AP%==1 GOTO PROGRAMS IF %AP%==2 GOTO MENU IF %AP%==3 GOTO CLOSE - + :HARDINFODOWN cls color 0A echo. echo Are you sure that you want to download the newest version of Hardware Info? echo. -SET /P AE=If yes, enter the number 1, if not enter number 2 to return to the sub-menu. Enter: -IF %AE%==1 GOTO HARDINFODOWNLOADLINK +SET /P AE=If yes, enter the number 1, if not enter number 2 to return to the sub-menu. Enter: +IF %AE%==1 GOTO HARDINFODOWNLOADLINK IF %AE%==2 GOTO PROGRAMS :HARDINFODOWNLOADLINK @@ -573,7 +579,7 @@ echo Your download will start now; if not click on 'installer' on the download p echo. start "" https://www.fosshub.com/HWiNFO.html?dwl=hwi_726.exe echo. -SET /P AF=To return to the previous sub-menu enter 1, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: +SET /P AF=To return to the previous sub-menu enter 1, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: IF %AF%==1 GOTO PROGRAMS IF %AF%==2 GOTO MENU IF %AF%==3 GOTO CLOSE @@ -583,20 +589,20 @@ cls color 0A echo. echo Are you sure that you want to download the latest version of ADW Cleaner? -echo. -SET /P AG=If yes enter the number 1 to start the download, enter number 2 to return to the previous sub-menu. Enter: +echo. +SET /P AG=If yes enter the number 1 to start the download, enter number 2 to return to the previous sub-menu. Enter: IF %AG%==1 GOTO ADWCLEANERDOWNLOADLINK IF %AG%==2 GOTO PROGRAMS :ADWCLEANERDOWNLOADLINK cls color 0A -echo. +echo. echo Your download will start now! echo. start "" https://downloads.malwarebytes.com/file/adwcleaner echo. -SET /P AH=To return to the previous sub-menu enter 1, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: +SET /P AH=To return to the previous sub-menu enter 1, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: IF %AH%==1 GOTO PROGRAMS IF %AH%==2 GOTO MENU IF %AH%==3 GOTO CLOSE @@ -604,10 +610,10 @@ IF %AH%==3 GOTO CLOSE :DISKINFODOWN cls color 0A -echo. +echo. echo Are you sure that you want to download the latest version of Disk Info? -echo. -SET /P AI=If yes enter the number 1 to start the download, enter the number 2 to return to the previous sub-menu. Enter: +echo. +SET /P AI=If yes enter the number 1 to start the download, enter the number 2 to return to the previous sub-menu. Enter: IF %AI%==1 GOTO DISKINFODOWNLOADLINK IF %AI%==2 GOTO PROGRAMS @@ -618,7 +624,7 @@ echo. echo Your download will start now! start "" https://osdn.net/projects/crystaldiskinfo/downloads/77538/CrystalDiskInfo8_17_4.zip/ echo. -SET /P AJ=To return to the previous sub-menu enter 1, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: +SET /P AJ=To return to the previous sub-menu enter 1, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: IF %AJ%==1 GOTO PROGRAMS IF %AJ%==2 GOTO MENU IF %AJ%==3 GOTO CLOSE @@ -626,10 +632,10 @@ IF %AJ%==3 GOTO CLOSE :DISKMARKDOWN cls color 0A -echo. +echo. echo Are you sure that you want to download the latest version of Disk Mark? -echo. -SET /P AK=If yes enter the number 1 to start the download, enter the number 2 to return to the previous sub-menu. Enter: +echo. +SET /P AK=If yes enter the number 1 to start the download, enter the number 2 to return to the previous sub-menu. Enter: IF %AK%==1 GOTO DISKMARKDOWNLOADLINK IF %AK%==2 GOTO PROGRAMS @@ -640,7 +646,7 @@ echo. echo Your download will start now! start "" https://osdn.net/projects/crystaldiskmark/downloads/77539/CrystalDiskMark8_0_4b.zip/ echo. -SET /P AL=To return to the previous sub-menu enter 1, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: +SET /P AL=To return to the previous sub-menu enter 1, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: IF %AL%==1 GOTO PROGRAMS IF %AL%==2 GOTO MENU IF %AL%==3 GOTO CLOSE @@ -648,9 +654,9 @@ IF %AL%==3 GOTO CLOSE :PRIMEDOWN cls color 0A -echo. -echo Are you sure that you want to download the latest version of Prime95? Enter: -echo. +echo. +echo Are you sure that you want to download the latest version of Prime95? Enter: +echo. SET /P AM=If yes enter the number 1 to start the download, enter the number 2 to return to the previous sub-menu. IF %AM%==1 GOTO PRIMEDOWNLOADLINK IF %AM%==2 GOTO PROGRAMS @@ -662,7 +668,7 @@ echo. echo Your download will start now! start "" https://www.guru3d.com/files-get/prime95-download,3.html echo. -SET /P AN=To return to the previous sub-menu enter 1, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: +SET /P AN=To return to the previous sub-menu enter 1, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: IF %AN%==1 GOTO PROGRAMS IF %AN%==2 GOTO MENU IF %AN%==3 GOTO CLOSE @@ -671,10 +677,10 @@ IF %AN%==3 GOTO CLOSE cls color 0A echo. -echo Are you sure that you want to try out a pre-release? +echo Are you sure that you want to try out a pre-release? echo. echo -SET /P AO=If yes you could enter number 1 to be redirected to our version page on GitHub, we would like to recieve feedback on your experience with a pre-release build! Because it could help us out, improving our script! You can enter number 2 to return to the main menu or you could enter number 3 to close the script. Enter: +SET /P AO=If yes you could enter number 1 to be redirected to our version page on GitHub, we would like to recieve feedback on your experience with a pre-release build! Because it could help us out, improving our script! You can enter number 2 to return to the main menu or you could enter number 3 to close the script. Enter: IF %AO%==1 GOTO GETEARLYRLS IF %AO%==2 GOTO MENU IF %AO%==3 GOTO CLOSE From eb210ec1557a5a9253ad289dca59a567b9261b9f Mon Sep 17 00:00:00 2001 From: BigoStream <54169638+REALSDEALS@users.noreply.github.com> Date: Thu, 25 May 2023 15:43:43 +0200 Subject: [PATCH 4/8] Tweak: Trace Log Function Tweak: A tweak has been made to the useability of the function. Thanks to @Stensel8 the error in the code had been found. Thanks for adressing this issue and your further help. Besides that the code has had some small QoL improvements regarding to the layout of the user 'UI.' --- Documentation/changelog.md | 9 +++ Documentation/releases.md | 3 +- Scripts/CMD/pcHealth.bat | 110 ++++++++++++++++++++----------------- 3 files changed, 71 insertions(+), 51 deletions(-) diff --git a/Documentation/changelog.md b/Documentation/changelog.md index 1b675cd..c6960d7 100644 --- a/Documentation/changelog.md +++ b/Documentation/changelog.md @@ -1,5 +1,14 @@ # Changelog.md - pcHealth +## 25-05-2023 - @REALSDEALS & @Stensel8 + +Created a issue, issue is about the following: +- The log file couldn't be openend after the log file was created due to a typo in the code. @Stensel8 fixed this issue. + +Besides that the code has had some revisions, some quality of life changes have been made and it's made a little bit easier on how to use function 13 in the tools menu. + +Thanks again for helping me out @Stensel8! + ## 11-04-2023 - @REALSDEALS Added a function so the user can designate his/her own url to trace/ping. diff --git a/Documentation/releases.md b/Documentation/releases.md index 519a157..4a47f91 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.6.6-beta +Beta Release - v1.6.7-beta Alpha Release - v0.3.0-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.7-beta - Beta Release - v1.6.6-beta - Beta Release - v1.6.5-beta - Beta Release - v1.6.4-beta diff --git a/Scripts/CMD/pcHealth.bat b/Scripts/CMD/pcHealth.bat index 47aea84..95a6790 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.6.6-beta +title pcHealth - Check your PC's Health! - version 1.6.7-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.6.6-beta +echo You are now using version 1.6.7-beta echo. echo %DATE%, %TIME% echo. @@ -55,7 +55,7 @@ echo Enter number 5 to close this batch script. echo ........................................................... echo. -SET /P A=Type one of the numbers from the menu above to open the desired menu and then press ENTER. Enter: +SET /P A=Type one of the numbers from the menu above to open the desired menu and then press ENTER. Enter: IF %A%==1 GOTO TOOLS IF %A%==2 GOTO PROGRAMS IF %A%==3 GOTO PCHEALTHGETVER @@ -96,7 +96,7 @@ echo Enter number 24 to close this batch file. echo ........................................................... echo. -SET /P B=Type one of the numbers from the menu above to run the desired function, then press ENTER. Enter: +SET /P B=Type one of the numbers from the menu above to run the desired function, then press ENTER. Enter: IF %B%==1 GOTO SYSINFO IF %B%==2 GOTO CPUANDGPUINFO IF %B%==3 GOTO SCAN @@ -140,7 +140,7 @@ echo Enter number 8 to close the script. echo ........................................................... echo. -SET /P AB=Type one of the numbers above to run the desired function. Enter: +SET /P AB=Type one of the numbers above to run the desired function. Enter: IF %AB%==1 GOTO HARDINFODOWN IF %AB%==2 GOTO ADWCLEANER IF %AB%==3 GOTO DISKINFODOWN @@ -156,7 +156,7 @@ color 0A winget upgrade --all pause echo. -SET /P LL=Enter number 1 to return to the sub-menu, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: +SET /P LL=Enter number 1 to return to the sub-menu, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: IF %LL%==1 GOTO TOOLS IF %LL%==2 GOTO MENU IF %LL%==3 GOTO CLOSE @@ -167,7 +167,7 @@ color 0A systeminfo pause echo. -SET /P C=Enter number 1 to return to the sub-menu, enter number 2 to go back to the main menu or enter number 3 to close the script. Enter: +SET /P C=Enter number 1 to return to the sub-menu, enter number 2 to go back to the main menu or enter number 3 to close the script. Enter: IF %C%==1 GOTO TOOLS IF %C%==2 GOTO MENU IF %C%==3 GOTO CLOSE @@ -178,7 +178,7 @@ color 0A sfc /scannow pause echo. -SET /P D=If the scan found any corrupt files, enter number 1 to check the .log, enter number 2 to return to the previous sub-menu, enter number 3 when you want to return to the menu or enter number 4 to close the script. Enter: +SET /P D=If the scan found any corrupt files, enter number 1 to check the .log, enter number 2 to return to the previous sub-menu, enter number 3 when you want to return to the menu or enter number 4 to close the script. Enter: IF %D%==1 GOTO OPENCBSLOG IF %D%==2 GOTO TOOLS IF %D%==3 GOTO MENU @@ -197,7 +197,7 @@ echo. wmic path win32_VideoController get name pause echo. -SET /P E=Enter number 1 to return to the sub-menu, enter number 2 to go back to the main menu or enter number 3 to close the script. Enter: +SET /P E=Enter number 1 to return to the sub-menu, enter number 2 to go back to the main menu or enter number 3 to close the script. Enter: IF %E%==1 GOTO TOOLS IF %E%==2 GOTO MENU IF %E%==3 GOTO CLOSE @@ -209,7 +209,7 @@ DISM /online /cleanup-image /checkhealth DISM /online /cleanup-image /scanhealth pause echo. -SET /P F=Enter number 1 to start an attempt on repairing, enter number 2 to return to the previous sub-menu, number 3 for the main-menu or number 4 to exit the script. Enter: +SET /P F=Enter number 1 to start an attempt on repairing, enter number 2 to return to the previous sub-menu, number 3 for the main-menu or number 4 to exit the script. Enter: IF %F%==1 GOTO DISMRESTORE IF %F%==2 GOTO TOOLS IF %F%==3 GOTO MENU @@ -221,7 +221,7 @@ color 0A DISM /online /cleanup-image /restorehealth pause echo. -SET /P G=Enter number 1 to return to the sub-menu, enter number 2 to go back to the main menu or enter number 3 to close the script. Enter: +SET /P G=Enter number 1 to return to the sub-menu, enter number 2 to go back to the main menu or enter number 3 to close the script. Enter: IF %G%==1 GOTO TOOLS IF %G%==2 GOTO MENU IF %G%==3 GOTO CLOSE @@ -232,7 +232,7 @@ color 0A sfc /scannow pause echo. -SET /P H=If the scan found any corrupt files, enter number 1 to check the .log, enter number 2 to start an attempt to repair the corrupt/missing files,enter number 3 to return to the previous sub-menu, enter number 4 to return to the main-menu or enter number 5 to exit the script. Enter: +SET /P H=If the scan found any corrupt files, enter number 1 to check the .log, enter number 2 to start an attempt to repair the corrupt/missing files,enter number 3 to return to the previous sub-menu, enter number 4 to return to the main-menu or enter number 5 to exit the script. Enter: IF %H%==1 GOTO SCSMOPENLOG IF %H%==2 GOTO CONTINUE IF %H%==3 GOTO TOOLS @@ -245,7 +245,7 @@ color 0A start %windir%\explorer.exe "C:\Windows\Logs\CBS\CBS.log" pause echo. -SET /P I=Enter number 1 to start an attempt to repair the corrupt/missing files, if any are found... Enter number 2 to return to the previous sub-menu, enter number 3 to return to the main-menu or enter number 4 to exit the script. Enter: +SET /P I=Enter number 1 to start an attempt to repair the corrupt/missing files, if any are found... Enter number 2 to return to the previous sub-menu, enter number 3 to return to the main-menu or enter number 4 to exit the script. Enter: IF %I%==1 GOTO CONTINUE IF %I%==2 GOTO TOOLS IF %I%==3 GOTO MENU @@ -260,7 +260,7 @@ pause DISM /online /cleanup-image /restorehealth pause echo. -SET /P J=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. Enter: +SET /P J=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. Enter: IF %J%==1 GOTO TOOLS IF %J%==2 GOTO MENU IF %J%==3 GOTO CLOSE @@ -271,7 +271,7 @@ color 0A powercfg /batteryreport pause echo. -SET /P K=Enter number 1 to open the generated file, enter number 2 to return to the previous sub-menu, number 3 to return to the main-menu or enter number 4 to exit the script. Enter: +SET /P K=Enter number 1 to open the generated file, enter number 2 to return to the previous sub-menu, number 3 to return to the main-menu or enter number 4 to exit the script. Enter: IF %K%==1 GOTO BATOPEN IF %K%==2 GOTO TOOLS IF %K%==3 GOTO MENU @@ -283,7 +283,7 @@ color 0A control update pause echo. -SET /P L=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: +SET /P L=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 @@ -294,7 +294,7 @@ 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: +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 @@ -305,7 +305,7 @@ 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: +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 @@ -316,7 +316,7 @@ color 0A ping 8.8.8.8 pause echo. -SET /P M=Enter number 1 to return to the previous sub-menu, enter number 2 to return to the main-menu, enter number 3 to start a continues ping test or enter number 4 to exit the script. Enter: +SET /P M=Enter number 1 to return to the previous sub-menu, enter number 2 to return to the main-menu, enter number 3 to start a continues ping test or enter number 4 to exit the script. Enter: IF %M%==1 GOTO TOOLS IF %M%==2 GOTO MENU IF %M%==3 GOTO CONTINUESPING @@ -328,7 +328,7 @@ color 0A ping 8.8.8.8 -t -l 256 pause echo. -SET /P N=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: +SET /P N=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 %N%==1 GOTO TOOLS IF %N%==2 GOTO MENU IF %N%==2 GOTO CLOSE @@ -342,7 +342,7 @@ 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: +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 @@ -353,7 +353,7 @@ color 0A echo. echo Please enter a URL to start a trace route: (example: www.google.com) echo. -set /p ip=Tell me your target: +set /p ip=Tell me your target: echo %ip% pause IF "%ip%" equ "" ( @@ -370,17 +370,27 @@ IF "%ip%" equ "" ( ping %IP% > "C:\ping-%ip%.txt" ) pause - SET /P OPEN=Enter 1 to open the folder were the text files (logs) are being stored, enter 2 to return to the main menu or enter number 3 to close the script. Enter: + SET /P OPEN=Enter 1 to open the C directory of your pc where the files are located, enter 2 to open the logs; 2 .txt files will open, enter 3 to return to the main menu or enter number 4 to close the script. Enter: IF %OPEN%==1 ( start %windir%\explorer.exe "C:\" pause GOTO MENU ) - IF %OPEN%==2 GOTO MENU - IF %OPEN%==3 GOTO CLOSE - - + IF %OPEN%==2 GOTO EXECLOG + IF %OPEN%==3 GOTO MENU + IF %OPEN%==4 GOTO CLOSE +:EXECLOG +cls +color 0A +echo. +start %windir%\explorer.exe "C:\trace-%ip%.txt" & start %windir%\explorer.exe "C:\ping-%ip%.txt" +pause +echo. +SET /P OP=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 %OP%==1 GOTO TOOLS +IF %OP%==2 GOTO MENU +IF %OP%==3 GOTO CLOSE :AUDIORE cls @@ -402,7 +412,7 @@ color 0A start %windir%\explorer.exe "C:\battery-report.html" pause echo. -SET /P O=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: +SET /P O=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 %O%==1 GOTO TOOLS IF %O%==2 GOTO MENU IF %O%==3 GOTO CLOSE @@ -413,7 +423,7 @@ color 0A start %windir%\explorer.exe "C:\Windows\Logs\CBS\CBS.log" pause echo. -SET /P P=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: +SET /P P=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 %P%==1 GOTO TOOLS IF %P%==2 GOTO MENU IF %P%==3 GOTO CLOSE @@ -424,7 +434,7 @@ color 0A start "" https://ninite.com/7zip-chrome-edge-vlc/ninite.exe pause echo. -SET /P Q=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: +SET /P Q=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 %Q%==1 GOTO TOOLS IF %Q%==2 GOTO MENU IF %Q%==3 GOTO CLOSE @@ -442,7 +452,7 @@ echo If it didn't showed a key, it is possible that this PC is using a 'illegal' echo. echo You can also try to use a different script for the license key, you can find it in the 'Scripts' folder in this pcHealth folder! echo. -SET /p R=If you want to return to the previous sub-menu, enter number 1. To return to the main-menu, enter number 2. To exit the script, enter the number 3. Enter: +SET /p R=If you want to return to the previous sub-menu, enter number 1. To return to the main-menu, enter number 2. To exit the script, enter the number 3. Enter: IF %R%==1 GOTO TOOLS IF %R%==2 GOTO MENU IF %R%==2 GOTO CLOSE @@ -458,7 +468,7 @@ echo I would suggest that you enter '2' on the next line to learn more. echo. echo The credits for this function and repository goes to the owner: @bacher09 echo. -SET /P SK=Enter number 1 to visit the website, enter number 2 to go to the repository of BIOS-PW and learn more! Enter number 3 to return to the sub-menu, enter number 4 to return to the main-menu or enter number 5 to close the script. Enter: +SET /P SK=Enter number 1 to visit the website, enter number 2 to go to the repository of BIOS-PW and learn more! Enter number 3 to return to the sub-menu, enter number 4 to return to the main-menu or enter number 5 to close the script. Enter: IF %SK%==1 start "" https://bios-pw.org && GOTO BIOSPW IF %SK%==2 start "" https://github.com/bacher09/pwgen-for-bios && GOTO BIOSPW IF %SK%==3 GOTO TOOLS @@ -469,7 +479,7 @@ IF %SK%==5 GOTO CLOSE cls color 0A echo. -SET /P S=If you want to log off from your PC/Laptop enter number 1, to restart enter number 2, to shutdown enter number 3 and to return to the previous sub-menu enter number 4 or to exit the script... enter number 5. Enter: +SET /P S=If you want to log off from your PC/Laptop enter number 1, to restart enter number 2, to shutdown enter number 3 and to return to the previous sub-menu enter number 4 or to exit the script... enter number 5. Enter: IF %S%==1 GOTO LOGOFF1 IF %S%==2 GOTO RESTART2 IF %S%==3 GOTO SHUTDOWN3 @@ -480,7 +490,7 @@ IF %S%==5 GOTO CLOSE cls color 0A echo. -SET /P T=Are you sure that you want to log off your PC? Enter number 1, enter number 2 to return to the previous sub-menu, enter number 3 to return to the main-menu or enter number 4 to exit the script. Enter: +SET /P T=Are you sure that you want to log off your PC? Enter number 1, enter number 2 to return to the previous sub-menu, enter number 3 to return to the main-menu or enter number 4 to exit the script. Enter: IF %T%==1 GOTO LOGOFFCONFIRM1 IF %T%==2 GOTO TOOLS IF %T%==3 GOTO MENU @@ -496,7 +506,7 @@ EXIT /B cls color 0A echo. -SET /P U=Are you sure that you want to restart your PC? Enter number 1, to do so. Enter number 2 to return to the previous sub-menu, enter number 3 to return to the main-menu or enter number 4 to exit the script. Enter: +SET /P U=Are you sure that you want to restart your PC? Enter number 1, to do so. Enter number 2 to return to the previous sub-menu, enter number 3 to return to the main-menu or enter number 4 to exit the script. Enter: IF %U%==1 GOTO RESTARTCONFIRM2 IF %U%==2 GOTO TOOLS IF %U%==3 GOTO MENU @@ -512,7 +522,7 @@ EXIT /B cls color 0A echo. -SET /P V=Are you sure that you want to shutdown your PC? Enter number 1, to continue. Enter number 2 to return to the previous sub-menu, enter number 3 to return to the main-menu or enter number 4 to exit the script. Enter: +SET /P V=Are you sure that you want to shutdown your PC? Enter number 1, to continue. Enter number 2 to return to the previous sub-menu, enter number 3 to return to the main-menu or enter number 4 to exit the script. Enter: IF %V%==1 GOTO SHUTDOWNCONFIRM3 IF %V%==2 GOTO TOOLS IF %V%==3 GOTO MENU @@ -530,7 +540,7 @@ color 0A echo. echo Are you sure that you want to download the newest version of pcHealth? echo. -SET /P AC=If yes, enter the number 1, if not enter number 2 to return to the previous sub-menu or enter number 3 to navigate to the repository itself and fetch your own download there. Enter: +SET /P AC=If yes, enter the number 1, if not enter number 2 to return to the previous sub-menu or enter number 3 to navigate to the repository itself and fetch your own download there. Enter: IF %AC%==1 GOTO PCHEALTHGETVERDOWNLOADLINK IF %AC%==2 GOTO MENU IF %AC%==3 GOTO PCHEALTHGOTOREPO @@ -543,7 +553,7 @@ echo Your download will start now! echo. start "" https://github.com/REALSDEALS/pcHealth/archive/refs/heads/main.zip echo. -SET /P AD=To return to the sub-menu enter 1, to return to the main menu enter 2 or to close the script enter 3. Enter: +SET /P AD=To return to the sub-menu enter 1, to return to the main menu enter 2 or to close the script enter 3. Enter: IF %AD%==1 GOTO PROGRAMS IF %AD%==2 GOTO MENU IF %AD%==3 GOTO CLOSE @@ -556,7 +566,7 @@ echo You will be redirected to the repository to fetch your own download. echo. start "" https://github.com/REALSDEALS/pcHealth echo. -SET /P AP=To return to the sub-menu enter 1, to return to the main menu enter 2 or to close the script enter 3. Enter: +SET /P AP=To return to the sub-menu enter 1, to return to the main menu enter 2 or to close the script enter 3. Enter: IF %AP%==1 GOTO PROGRAMS IF %AP%==2 GOTO MENU IF %AP%==3 GOTO CLOSE @@ -567,7 +577,7 @@ color 0A echo. echo Are you sure that you want to download the newest version of Hardware Info? echo. -SET /P AE=If yes, enter the number 1, if not enter number 2 to return to the sub-menu. Enter: +SET /P AE=If yes, enter the number 1, if not enter number 2 to return to the sub-menu. Enter: IF %AE%==1 GOTO HARDINFODOWNLOADLINK IF %AE%==2 GOTO PROGRAMS @@ -579,7 +589,7 @@ echo Your download will start now; if not click on 'installer' on the download p echo. start "" https://www.fosshub.com/HWiNFO.html?dwl=hwi_726.exe echo. -SET /P AF=To return to the previous sub-menu enter 1, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: +SET /P AF=To return to the previous sub-menu enter 1, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: IF %AF%==1 GOTO PROGRAMS IF %AF%==2 GOTO MENU IF %AF%==3 GOTO CLOSE @@ -590,7 +600,7 @@ color 0A echo. echo Are you sure that you want to download the latest version of ADW Cleaner? echo. -SET /P AG=If yes enter the number 1 to start the download, enter number 2 to return to the previous sub-menu. Enter: +SET /P AG=If yes enter the number 1 to start the download, enter number 2 to return to the previous sub-menu. Enter: IF %AG%==1 GOTO ADWCLEANERDOWNLOADLINK IF %AG%==2 GOTO PROGRAMS @@ -602,7 +612,7 @@ echo Your download will start now! echo. start "" https://downloads.malwarebytes.com/file/adwcleaner echo. -SET /P AH=To return to the previous sub-menu enter 1, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: +SET /P AH=To return to the previous sub-menu enter 1, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: IF %AH%==1 GOTO PROGRAMS IF %AH%==2 GOTO MENU IF %AH%==3 GOTO CLOSE @@ -613,7 +623,7 @@ color 0A echo. echo Are you sure that you want to download the latest version of Disk Info? echo. -SET /P AI=If yes enter the number 1 to start the download, enter the number 2 to return to the previous sub-menu. Enter: +SET /P AI=If yes enter the number 1 to start the download, enter the number 2 to return to the previous sub-menu. Enter: IF %AI%==1 GOTO DISKINFODOWNLOADLINK IF %AI%==2 GOTO PROGRAMS @@ -624,7 +634,7 @@ echo. echo Your download will start now! start "" https://osdn.net/projects/crystaldiskinfo/downloads/77538/CrystalDiskInfo8_17_4.zip/ echo. -SET /P AJ=To return to the previous sub-menu enter 1, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: +SET /P AJ=To return to the previous sub-menu enter 1, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: IF %AJ%==1 GOTO PROGRAMS IF %AJ%==2 GOTO MENU IF %AJ%==3 GOTO CLOSE @@ -635,7 +645,7 @@ color 0A echo. echo Are you sure that you want to download the latest version of Disk Mark? echo. -SET /P AK=If yes enter the number 1 to start the download, enter the number 2 to return to the previous sub-menu. Enter: +SET /P AK=If yes enter the number 1 to start the download, enter the number 2 to return to the previous sub-menu. Enter: IF %AK%==1 GOTO DISKMARKDOWNLOADLINK IF %AK%==2 GOTO PROGRAMS @@ -646,7 +656,7 @@ echo. echo Your download will start now! start "" https://osdn.net/projects/crystaldiskmark/downloads/77539/CrystalDiskMark8_0_4b.zip/ echo. -SET /P AL=To return to the previous sub-menu enter 1, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: +SET /P AL=To return to the previous sub-menu enter 1, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: IF %AL%==1 GOTO PROGRAMS IF %AL%==2 GOTO MENU IF %AL%==3 GOTO CLOSE @@ -655,7 +665,7 @@ IF %AL%==3 GOTO CLOSE cls color 0A echo. -echo Are you sure that you want to download the latest version of Prime95? Enter: +echo Are you sure that you want to download the latest version of Prime95? Enter: echo. SET /P AM=If yes enter the number 1 to start the download, enter the number 2 to return to the previous sub-menu. IF %AM%==1 GOTO PRIMEDOWNLOADLINK @@ -668,7 +678,7 @@ echo. echo Your download will start now! start "" https://www.guru3d.com/files-get/prime95-download,3.html echo. -SET /P AN=To return to the previous sub-menu enter 1, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: +SET /P AN=To return to the previous sub-menu enter 1, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: IF %AN%==1 GOTO PROGRAMS IF %AN%==2 GOTO MENU IF %AN%==3 GOTO CLOSE @@ -680,7 +690,7 @@ echo. echo Are you sure that you want to try out a pre-release? echo. echo -SET /P AO=If yes you could enter number 1 to be redirected to our version page on GitHub, we would like to recieve feedback on your experience with a pre-release build! Because it could help us out, improving our script! You can enter number 2 to return to the main menu or you could enter number 3 to close the script. Enter: +SET /P AO=If yes you could enter number 1 to be redirected to our version page on GitHub, we would like to recieve feedback on your experience with a pre-release build! Because it could help us out, improving our script! You can enter number 2 to return to the main menu or you could enter number 3 to close the script. Enter: IF %AO%==1 GOTO GETEARLYRLS IF %AO%==2 GOTO MENU IF %AO%==3 GOTO CLOSE From 58a8aa2cda94ef1d9d212ac85c737528d0ffb5a0 Mon Sep 17 00:00:00 2001 From: BigoStream <54169638+REALSDEALS@users.noreply.github.com> Date: Mon, 10 Jul 2023 13:50:49 +0200 Subject: [PATCH 5/8] Review: Checked Script Review: Checked the script, will be releasing a final release soon. --- Documentation/changelog.md | 5 +++++ Documentation/releases.md | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Documentation/changelog.md b/Documentation/changelog.md index c6960d7..b3dd842 100644 --- a/Documentation/changelog.md +++ b/Documentation/changelog.md @@ -1,5 +1,10 @@ # Changelog.md - pcHealth +## 10-07-2023 - @REALSDEALS + +Checked the script and reviewed it, it seems to be working fine. +Will be releasing a new, full version soon. + ## 25-05-2023 - @REALSDEALS & @Stensel8 Created a issue, issue is about the following: diff --git a/Documentation/releases.md b/Documentation/releases.md index 4a47f91..f3c6116 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.6.7-beta +Beta Release - v1.6.8-beta Alpha Release - v0.3.0-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.8-beta - Beta Release - v1.6.7-beta - Beta Release - v1.6.6-beta - Beta Release - v1.6.5-beta From 0ccafccbde0485f9b4a7bd06f603b1d5165350fe Mon Sep 17 00:00:00 2001 From: REALSDEALS <54169638+REALSDEALS@users.noreply.github.com> Date: Mon, 9 Oct 2023 13:48:36 +0200 Subject: [PATCH 6/8] Add: IPCONFIG & TRACERT DESIGNATED Add: Added new functions; ipconfig to show the users their ip and tracert designated; to let the user specify a URL to trace too. --- Documentation/changelog.md | 6 ++++ Documentation/releases.md | 3 +- README.md | 24 ++++++++------- Scripts/CMD/pcHealth.bat | 63 +++++++++++++++++++++++--------------- 4 files changed, 60 insertions(+), 36 deletions(-) diff --git a/Documentation/changelog.md b/Documentation/changelog.md index b3dd842..3aa4c11 100644 --- a/Documentation/changelog.md +++ b/Documentation/changelog.md @@ -1,5 +1,11 @@ # Changelog.md - pcHealth +## 9-10-2023 - @REALSDEALS + +Added some new simple functions to the script. +- TRACERT to user provided URL. (Number 13 in the Tools menu.) +- IPCONFIG to display the IP address of the system. (Number 14 in the Tools menu.) + ## 10-07-2023 - @REALSDEALS Checked the script and reviewed it, it seems to be working fine. diff --git a/Documentation/releases.md b/Documentation/releases.md index f3c6116..44d728c 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.6.8-beta +Beta Release - v1.6.9-beta Alpha Release - v0.3.0-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.9-beta - Beta Release - v1.6.8-beta - Beta Release - v1.6.7-beta - Beta Release - v1.6.6-beta diff --git a/README.md b/README.md index 5fab4a4..9b2c0f2 100644 --- a/README.md +++ b/README.md @@ -48,17 +48,19 @@ Otherwise I can keep no promise to that statement. 10. Short ping test. (Do I have internet?) 11. Continues ping test. (Does my internet stop at certain times?) 12. Starts the function 'TRACERT' and traces how many hops your system has to make before establishing an connection with the host. (Google) -13. Fetches updates for system programs, updates them too if needed. -14. Re-enables the drivers, it restarts the audio drivers. (Having issues with sound?) -15. Re-open the battery report. (Can't find my generated report anymore? Try opening it this way) -16. Re-open the CBS.log (DISM log, report from option 4.) -17. Get your Ninite! (Standard program downloader/updater; Chrome, Edge, VLC and 7Zip) -18. Check your Windows License Key. -19. BIOS password recovery. -20. Shutdown, reboot and/or logout from the system. -21. Open the other menu, it's called 'Programs'. -22. Returning to the previous menu, main-menu. -23. Close the script. +13. Starts the function 'TRACERT' and traces how many hops your system has to make before establishing an connection with the host. (URL User Provided) +14. Starts the function 'IPCONFIG' and shows you the IP address of your system. +15. Fetches updates for system programs, updates them too if needed. +16. Re-enables the drivers, it restarts the audio drivers. (Having issues with sound?) +17. Re-open the battery report. (Can't find my generated report anymore? Try opening it this way) +18. Re-open the CBS.log (DISM log, report from option 4.) +19. Get your Ninite! (Standard program downloader/updater; Chrome, Edge, VLC and 7Zip) +20. Check your Windows License Key. +21. BIOS password recovery. +22. Shutdown, reboot and/or logout from the system. +23. Open the other menu, it's called 'Programs'. +24. Returning to the previous menu, main-menu. +25. Close the script. #### Programs menu: diff --git a/Scripts/CMD/pcHealth.bat b/Scripts/CMD/pcHealth.bat index 95a6790..043f56d 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.6.7-beta +title pcHealth - Check your PC's Health! - version 1.6.9-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.6.7-beta +echo You are now using version 1.6.9-beta echo. echo %DATE%, %TIME% echo. @@ -82,17 +82,18 @@ echo Enter number 10 to start a short ping test. echo Enter number 11 to start a continues ping test. echo Enter number 12 to start a trace route to Google. echo Enter number 13 to start a trace route to a designated place. -echo Enter number 14 to update system programs. -echo Enter number 15 to re-start the audio drivers of your system. -echo Enter number 16 to re-open the generated battery report file. -echo Enter number 17 to re-open the CBS.log (AKA DISM.log) -echo Enter number 18 to get your Ninite! Includes Edge, Chrome, VLC and 7Zip. -echo Enter number 19 to see your systems Windows License key. -echo Enter number 20 BIOS Password Recovery. -echo Enter number 21 to shutdown, reboot or log off from your PC/laptop. -echo Enter number 22 to open the programs menu. -echo Enter number 23 to return to the previous menu. -echo Enter number 24 to close this batch file. +echo Enter number 14 to check your IP adresses. +echo Enter number 15 to update system programs. +echo Enter number 16 to re-start the audio drivers of your system. +echo Enter number 17 to re-open the generated battery report file. +echo Enter number 18 to re-open the CBS.log (AKA DISM.log) +echo Enter number 19 to get your Ninite! Includes Edge, Chrome, VLC and 7Zip. +echo Enter number 20 to see your systems Windows License key. +echo Enter number 21 BIOS Password Recovery. +echo Enter number 22 to shutdown, reboot or log off from your PC/laptop. +echo Enter number 23 to open the programs menu. +echo Enter number 24 to return to the previous menu. +echo Enter number 25 to close this batch file. echo ........................................................... echo. @@ -110,17 +111,18 @@ IF %B%==10 GOTO SHORTPING IF %B%==11 GOTO CONTINUESPING IF %B%==12 GOTO TRACEGOOGLE IF %B%==13 GOTO TRACEDESIG -IF %B%==14 GOTO SYSUPDATE -IF %B%==15 GOTO AUDIORE -IF %B%==16 GOTO BATOPEN -IF %B%==17 GOTO OPENCBSLOG -IF %B%==18 GOTO NINITE -IF %B%==19 GOTO LICENSE -IF %B%==20 GOTO BIOSPW -IF %B%==21 GOTO RESHUT -IF %B%==22 GOTO PROGRAMS -IF %B%==23 GOTO MENU -IF %B%==24 GOTO CLOSE +IF %B%==14 GOTO IPCONFIG +IF %B%==15 GOTO SYSUPDATE +IF %B%==16 GOTO AUDIORE +IF %B%==17 GOTO BATOPEN +IF %B%==18 GOTO OPENCBSLOG +IF %B%==19 GOTO NINITE +IF %B%==20 GOTO LICENSE +IF %B%==21 GOTO BIOSPW +IF %B%==22 GOTO RESHUT +IF %B%==23 GOTO PROGRAMS +IF %B%==24 GOTO MENU +IF %B%==25 GOTO CLOSE :PROGRAMS cls @@ -380,6 +382,19 @@ IF %OPEN%==1 ( IF %OPEN%==3 GOTO MENU IF %OPEN%==4 GOTO CLOSE +:IPCONFIG +cls +color 0A +echo. +ipconfig /all +pause +echo. +SET /P PO=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 %PO%==1 GOTO TOOLS +IF %PO%==2 GOTO MENU +IF %PO%==3 GOTO CLOSE + + :EXECLOG cls color 0A From 1f2768b5a9336f8f2d7d7526d7e66b8845471511 Mon Sep 17 00:00:00 2001 From: REALSDEALS <54169638+REALSDEALS@users.noreply.github.com> Date: Mon, 9 Oct 2023 16:10:22 +0200 Subject: [PATCH 7/8] Add: Auto Run VBS Add: Added a auto run VBS function, to the Programs menu. --- Documentation/changelog.md | 2 ++ Documentation/releases.md | 3 ++- README.md | 7 ++++--- Scripts/CMD/pcHealth.bat | 40 ++++++++++++++++++++++++++++++-------- 4 files changed, 40 insertions(+), 12 deletions(-) diff --git a/Documentation/changelog.md b/Documentation/changelog.md index 3aa4c11..6845477 100644 --- a/Documentation/changelog.md +++ b/Documentation/changelog.md @@ -6,6 +6,8 @@ Added some new simple functions to the script. - TRACERT to user provided URL. (Number 13 in the Tools menu.) - IPCONFIG to display the IP address of the system. (Number 14 in the Tools menu.) +Added a auto run VBS option to the Programs menu. + ## 10-07-2023 - @REALSDEALS Checked the script and reviewed it, it seems to be working fine. diff --git a/Documentation/releases.md b/Documentation/releases.md index 44d728c..2a427bb 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.6.9-beta +Beta Release - v1.6.10-beta Alpha Release - v0.3.0-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.10-beta - Beta Release - v1.6.9-beta - Beta Release - v1.6.8-beta - Beta Release - v1.6.7-beta diff --git a/README.md b/README.md index 9b2c0f2..0407147 100644 --- a/README.md +++ b/README.md @@ -74,9 +74,10 @@ I understand if people have their questions about that decision, but I wanted to 3. DiskInfo64 - This program will check information about your HDD/SDD (serial etc.) 4. DiskMark64 - This program will test your HDD/SDD on possible malfunctions. 5. Prime95 - This program will stress test your CPU. -6. Return to the previous menu. -7. Open the other menu, it's called 'Tools'. -8. Close the script. +6. (TEST) - Auto run VBS script. +7. Return to the previous menu. +8. Open the other menu, it's called 'Tools'. +9. Close the script. #### KeyGrabber The key grabber script does what it says! diff --git a/Scripts/CMD/pcHealth.bat b/Scripts/CMD/pcHealth.bat index 043f56d..775880b 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.6.9-beta +title pcHealth - Check your PC's Health! - version 1.6.10-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.6.9-beta +echo You are now using version 1.6.10-beta echo. echo %DATE%, %TIME% echo. @@ -136,9 +136,10 @@ echo Enter number 2 to get ADW Cleaner. echo Enter number 3 to get DiskInfo64. echo Enter number 4 to get DiskMark64. echo Enter number 5 to get Prime95. -echo Enter number 6 to open the tools menu. -echo Enter number 7 to return to the previous menu. -echo Enter number 8 to close the script. +echo Enter number 6 to open the VBS script. +echo Enter number 7 to open the tools menu. +echo Enter number 8 to return to the previous menu. +echo Enter number 9 to close the script. echo ........................................................... echo. @@ -148,9 +149,10 @@ IF %AB%==2 GOTO ADWCLEANER IF %AB%==3 GOTO DISKINFODOWN IF %AB%==4 GOTO DISKMARKDOWN IF %AB%==5 GOTO PRIMEDOWN -IF %AB%==6 GOTO TOOLS -IF %AB%==7 GOTO MENU -IF %AB%==8 GOTO CLOSE +IF %AB%==6 GOTO VBS +IF %AB%==7 GOTO TOOLS +IF %AB%==8 GOTO MENU +IF %AB%==9 GOTO CLOSE :SYSUPDATE cls @@ -719,6 +721,28 @@ start "" https://github.com/REALSDEALS/pcHealth/releases echo. GOTO MENU +:VBS +cls +color 0A +echo. +echo Are you sure that you want to open the VBS script? +echo. +SET /P AP=If yes enter the number 1 to open the VBS script, enter number 2 to return to the previous sub-menu. Enter: +IF %AP%==1 GOTO VBSOPEN +IF %AP%==2 GOTO PROGRAMS + +:VBSOPEN +cls +color 0A +echo. +echo Your VBS script will open now! +echo. +start "" "C:\Users\%username%\Downloads\pcHealth\Scripts\VBS\KeyGrabber.vbs" +echo. +SET /P AQ=To return to the previous sub-menu enter 1, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: +IF %AQ%==1 GOTO PROGRAMS +IF %AQ%==2 GOTO MENU +IF %AQ%==3 GOTO CLOSE :CLOSE EXIT /B \ No newline at end of file From ebbe662bd94b75bea0a77060d959db0926e7aacd Mon Sep 17 00:00:00 2001 From: REALSDEALS <54169638+REALSDEALS@users.noreply.github.com> Date: Thu, 12 Oct 2023 15:48:43 +0200 Subject: [PATCH 8/8] Tweak: Run .VBS Tweak: Tweaked the start, or start from location of the .VBS script. Users are prompted in the README.md to run the script from the Desktop, hence why the start location in the script has been changed from 'Downloads' to 'Desktop.' --- Documentation/changelog.md | 5 +++++ README.md | 2 +- Scripts/CMD/pcHealth.bat | 6 +++--- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/Documentation/changelog.md b/Documentation/changelog.md index 6845477..43c038e 100644 --- a/Documentation/changelog.md +++ b/Documentation/changelog.md @@ -1,5 +1,10 @@ # Changelog.md - pcHealth +## 12-10-2023 - @REALSDEALS + +Redirected the function to use the VBS script to the Desktop location, instead of the Documents folder; this change has been made because of the following reason: +- Users are instructed to download the script to the Desktop, so it would be easier to use the script. + ## 9-10-2023 - @REALSDEALS Added some new simple functions to the script. diff --git a/README.md b/README.md index 0407147..feaec1c 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ Feel free to contact me on discord: REALSDEALS#6353 ### More information regarding on how to install and use it: - Download this repository. -- Extract it to the desktop to be sure that it will run with full permissions. +- Extract it to the DESKTOP to be sure that it will run with full permissions. - Open the `scripts` folder and choose your preferred method by choosing the `CMD` or `PowerShell` folder. - Open the file in the chosen folder and read the rules carefully. - Enter in the number of the desired command that you want to run. (Number + ENTER) diff --git a/Scripts/CMD/pcHealth.bat b/Scripts/CMD/pcHealth.bat index 775880b..c201c80 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.6.10-beta +title pcHealth - Check your PC's Health! - version 1.6.11-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.6.10-beta +echo You are now using version 1.6.11-beta echo. echo %DATE%, %TIME% echo. @@ -737,7 +737,7 @@ color 0A echo. echo Your VBS script will open now! echo. -start "" "C:\Users\%username%\Downloads\pcHealth\Scripts\VBS\KeyGrabber.vbs" +start "" "C:\Users\%username%\Desktop\pcHealth\Scripts\VBS\KeyGrabber.vbs" echo. SET /P AQ=To return to the previous sub-menu enter 1, enter number 2 to return to the main-menu or enter number 3 to exit the script. Enter: IF %AQ%==1 GOTO PROGRAMS