if [abc]==[abc] ( set var1=xyz echo var1=abc [in block] set var2=abc)
errorlevel=0Ping request could not find host 999.999. Please check the name and try again.InternetConnection=Falseerrorlevel=1reset errorlevel to 0errorlevel=0Ping request could not find host 999.999. Please check the name and try again.InternetConnection=Trueerrorlevel=1reset errorlevel to 0errorlevel=0'abcdefxyz' is not recognized as an internal or external command,operable program or batch file.InternetConnection=TruePress any key to continue . . .
@echo offsetlocal ENABLEDELAYEDEXPANSIONecho sum 1 to 10set /a sum=0for /l %%i in (1,1,10) do ( set /a sum+=%%i echo %sum%)echo %sum% [out block]echo use DELAYEDEXPANSIONset /a sum=0for /l %%i in (1,1,10) do ( set /a sum+=%%i echo !sum!)echo %sum% [out block]pause
sum 1 to 10000000000055 [out block]use DELAYEDEXPANSION1361015212836455555 [out block]
@echo offsetlocal ENABLEDELAYEDEXPANSIONif not ==[1] ( ping.exe 999.999 -w 1 if !errorlevel! EQU 0 set InternetConnection=True)pause
@echo offset /a sum=0for /l %%i in (1,1,10) do ( set /a sum+=%%i call echo %%sum%%)echo %sum% [out block]
@echo offset /a sum=0for /l %%i in (1,1,10) do ( set /a sum+=%%i rem call :label_function %sum% call :label_function)echo %sum% [out block]pausegoto :EOF:label_functionrem echo %1 always 0, because this will be [call :label_function 0] at input timerem show_value_in_label_function_without_blockecho %sum%goto :EOF
Quotejust updated cmd atLancelot Reply 11I tested it, and it just remove Temp dirs, and use 7z extract the file.Update_with_zip.cmd OLD_PESE.zip I didn't see any DOWNLOAD action... how do it update? as you Updated Win10PE_SE_2018-12-16 - ZIP and Project servers, I downloaded with my smartphone in 5 minutes. this is good to me.
just updated cmd atLancelot Reply 11
(I updated PESE plugins with 1 hour. download the ZIP toke 20 minutes.)
with your fixes It will be good to have both x86 and x64 ....exeeg. binmay0.3m_x86_x64_by_slore.zip
only -1,-2,..,-255 make InternetConnection be True.
normally use If [not] ErrorLevel 1 ...(also not in good design)
If not ErrorLevel 0to control an application (eg. 7z.exe) works as expected.
\\192.168.25.60\CDImage\Thin PC\Font for Win7thinpc_x64\\192.168.25.60\CDImage\Thin PC\Font for Win7thinpc_x64\amd64~winemb-font-bitmap-miscellaneous~~~~6.1.7600.16385~1.0\WinEmb-Font-Bitmap-Miscellaneous.cab