Skip to content

Commit

Permalink
Merge pull request #58 from REALSDEALS/REALSDEALS
Browse files Browse the repository at this point in the history
Add: Added 2 Ping Features
  • Loading branch information
REALSDEALS authored Dec 9, 2021
2 parents aeb309f + 0c9f5f5 commit b78c157
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 27 deletions.
3 changes: 3 additions & 0 deletions Documentation/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ But this will be the placeholder for now.

README.md has been updated to explain what 'Number 5 does.'

Added 2 new functions, short ping en continues ping.
Updated the README.md again for the explanation of what it does.

## 08-12-2021

Updated the README.md
Expand Down
3 changes: 2 additions & 1 deletion Documentation/releases.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ For now only the version names will be displayed, in the future there might be e

## Latest Version

Full Release - v1.1.0
Full Release - v1.2.0

## Older Releases

### Full Release(s)

- Full Release - v1.1.0
- Full Release - v1.0.0

### Alpha Release(s)
Expand Down
20 changes: 14 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,25 @@ In this battery report you can read up on your battery status from your laptop.

With this entry you will open the GUI to Windows Update, to search and start for Windows Update(s.)

### Re-open the Battery Report - Number 6
### Do a short Ping request - Number 6

This command will run a short ping command with small package(s) so we can to get a conclusion if the pc/laptop gets a connection or not.

### Do a continues Ping request with package bytes of 256 - Number 7

Number 7 will run a continues ping test with package bytes of 256, you have to manually stop it with (ctrl + c.)

### Re-open the Battery Report - Number 8

This entry will re-open the generated battery report file.

### Re-open the DISM Log - Number 7
### Re-open the DISM Log - Number 9

With this entry you can re-open the DISM/CBS.log.

### Get your Ninite - Number 8
### Get your Ninite - Number 10

When entered number 8 a download will start, this download will install:
When entered number 10 a download will start, this download will install:

- Edge
- Chrome
Expand All @@ -69,9 +77,9 @@ When entered number 8 a download will start, this download will install:

Edge will be installed so you have the latest version of it, after a clean install this is recommanded.

### Close the Script - Number 9
### Close the Script - Number 11

With number 9 you can close the script.
With number 11 you can close the script.

## Questions

Expand Down
61 changes: 41 additions & 20 deletions Scripts/pcHealth.bat
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ if '%errorlevel%' NEQ '0' (
CD /D "%~dp0"
:--------------------------------------
:: MainCode
echo off
title pcHealth - Check your PC's Health! //\\ v1.1.0
@echo off
title pcHealth - Check your PC's Health! //_\\ v1.2.0
cd /
color A
cls
Expand All @@ -40,7 +40,7 @@ echo.
echo Thanks for downloading and using pcHealth!
echo Please be sure that you are running this Batch file in Administrator mode.
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.1.0
echo You are now using version 1.2.0
echo.
echo %DATE%, %TIME%
echo.
Expand All @@ -50,10 +50,12 @@ echo PRESS 2 TO TRY AND REPAIR CORRUPT FILES
echo PRESS 3 TO RUN A SYSTEM SCAN AND START REPAIRING IN ONE GO
echo PRESS 4 TO GENERATE A BATTERY REPORT
echo PRESS 5 TO OPEN WINDOWS UPDATE(S)
echo PRESS 6 TO RE-OPEN THE BATTERY REPORT
echo PRESS 7 TO RE-OPEN THE CBS.log (DISM LOG)
echo PRESS 8 TO GET YOUR NINITE (INCLUDES EDGE, CHROME, VLC AND 7ZIP)
echo PRESS 9 TO CLOSE THIS BATCH FILE
echo PRESS 6 TO START A SHORT PING TEST
echo PRESS 7 TO START A CONTINUES PING TEST
echo PRESS 8 TO RE-OPEN THE BATTERY REPORT
echo PRESS 9 TO RE-OPEN THE CBS.log (DISM LOG)
echo PRESS 10 TO GET YOUR NINITE (INCLUDES EDGE, CHROME, VLC AND 7ZIP)
echo PRESS 11 TO CLOSE THIS BATCH FILE
echo ...........................................................
echo.
SET /P A=Type one of the numbers above to run, then press ENTER:
Expand All @@ -62,10 +64,12 @@ IF %A%==2 GOTO DISM
IF %A%==3 GOTO SCSM
IF %A%==4 GOTO BATTERY
IF %A%==5 GOTO UPDATE
IF %A%==6 GOTO BATOPEN
IF %A%==7 GOTO OPENCBSLOG
IF %A%==8 GOTO NINITE
IF %A%==9 GOTO CLOSE
IF %A%==6 GOTO SHORTPING
IF %A%==7 GOTO CONTINUESPING
IF %A%==8 GOTO BATOPEN
IF %A%==9 GOTO OPENCBSLOG
IF %A%==10 GOTO NINITE
IF %A%==11 GOTO CLOSE

:SCAN
sfc /scannow
Expand Down Expand Up @@ -137,29 +141,46 @@ SET /P J=Enter 1 to return to the menu, enter 2 to exit. ENTER:
IF %J%==1 GOTO MENU
IF %J%==2 GOTO CLOSE

:SHORTPING
ping 8.8.8.8
pause
echo.
SET /P K=Enter 1 to return to the menu, enter 2 to start a continues ping test, enter 3 to exit. ENTER:
IF %k%==1 GOTO MENU
IF %K%==2 GOTO CONTINUESPING
IF %K%==3 GOTO CLOSE

:CONTINUESPING
ping 8.8.8.8 -t -l 256
pause
echo.
SET /P L=Enter 1 to return to the menu, enter 2 to exit. ENTER:
IF %L%==1 GOTO MENU
IF %L%==2 GOTO CLOSE

:BATOPEN
start %windir%\explorer.exe "C:\battery-report.html"
pause
echo.
SET /P K=Enter 1 to return to the menu, enter 2 to exit. ENTER:
IF %K%==1 GOTO MENU
IF %K%==2 GOTO CLOSE
SET /P M=Enter 1 to return to the menu, enter 2 to exit. ENTER:
IF %M%==1 GOTO MENU
IF %M%==2 GOTO CLOSE

:OPENCBSLOG
start %windir%\explorer.exe "C:\Windows\Logs\CBS\CBS.log"
pause
echo.
SET /P L=Enter 1 to return to the main menu, enter 2 to exit. ENTER:
IF %L%==1 GOTO MENU
IF %L%==2 GOTO CLOSE
SET /P N=Enter 1 to return to the main menu, enter 2 to exit. ENTER:
IF %N%==1 GOTO MENU
IF %N%==2 GOTO CLOSE

:NINITE
start "" https://ninite.com/7zip-chrome-edge-vlc/ninite.exe
pause
echo.
SET /P M=Enter 1 to return to the main menu, enter 2 to exit. ENTER:
IF %M%==1 GOTO MENU
IF %M%==2 GOTO CLOSE
SET /P O=Enter 1 to return to the main menu, enter 2 to exit. ENTER:
IF %O%==1 GOTO MENU
IF %O%==2 GOTO CLOSE

:CLOSE
EXIT /B

0 comments on commit b78c157

Please sign in to comment.