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 1/2] 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 2/2] 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