Skip to content

Commit 27409a5

Browse files
committed
Update AutoRunWithCMD.cmd
Attempting to debug why the :PingGoogle section just doesn't work correctly, according to the log it DOES ping google, but somewhere along the lines of it setting the %InternetState% variable, or potentially it echoing the variable, it just doesn't work.
1 parent 418e898 commit 27409a5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

AutoRunWithCMD.cmd

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ if '%choice%'=='3' goto :DISMandSFC
9898
if '%choice%'=='4' goto :exit
9999
ECHO "%choice%" is not a valid option, please try again.
100100
ECHO.
101+
goto :Choice
101102
echo.>EndOfChoiceTriggered.txt
102103

103104

@@ -107,10 +108,10 @@ goto :leave
107108
echo.>EndOfGoToRegualarCMDTriggered.txt
108109

109110
:PingGoogle
110-
@echo off
111+
@echo on
111112
title Pinging Google......
112113
ping google.com -n 1 >PingStats.txt
113-
if !errorlevel!==0 set %InternetState%=up else set %InternetState%=down
114+
if !errorlevel!==0 set InternetState=up else set InternetState=down
114115
echo. Internet is %InternetState%!
115116
goto :MainMenu
116117
echo.>EndOfPingGoogleTriggered.txt

0 commit comments

Comments
 (0)