mirror of
https://github.com/massgravel/Microsoft-Activation-Scripts.git
synced 2025-05-09 13:52:02 -04:00
Replace square brackets with double quotes in string comparison
This commit is contained in:
parent
d55b9fa78c
commit
b983bd41da
7 changed files with 47 additions and 47 deletions
|
@ -243,7 +243,7 @@ set -=
|
|||
set old=
|
||||
|
||||
for /f "delims=[] tokens=2" %%# in ('ping -4 -n 1 updatecheck.mass%-%grave.dev') do (
|
||||
if not [%%#]==[] (echo "%%#" | find "127.69" %nul1% && (echo "%%#" | find "127.69.%masver%" %nul1% || set old=1))
|
||||
if not "%%#"=="" (echo "%%#" | find "127.69" %nul1% && (echo "%%#" | find "127.69.%masver%" %nul1% || set old=1))
|
||||
)
|
||||
|
||||
if defined old (
|
||||
|
@ -340,7 +340,7 @@ goto :at_back
|
|||
|
||||
set _int=
|
||||
for %%a in (l.root-servers.net resolver1.opendns.com download.windowsupdate.com google.com) do if not defined _int (
|
||||
for /f "delims=[] tokens=2" %%# in ('ping -n 1 %%a') do (if not [%%#]==[] set _int=1)
|
||||
for /f "delims=[] tokens=2" %%# in ('ping -n 1 %%a') do (if not "%%#"=="" set _int=1)
|
||||
)
|
||||
|
||||
echo:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue