Horje
If ERRORLEVEL Code Example
If ERRORLEVEL
:Ping
for /f "tokens=* skip=2" %%A in ('ping %host% -n 1 ^& call echo %%^^errorlevel%%^>error.level') do (
    set /p elv=<"error.level" 
    if not !elv!==0 (echo %date% %time:~0,2%:%time:~3,2%:%time:~6,2% %%A>>%logfile_fail%)
    echo %date% %time:~0,2%:%time:~3,2%:%time:~6,2% %%A>>%logfile%
    echo elv %elv% %date% %time:~0,2%:%time:~3,2%:%time:~6,2% %%A
    timeout 1 >NUL 
    GOTO Ping
)




Cpp

Related
comment savoir si un nombre est premier c++ Code Example comment savoir si un nombre est premier c++ Code Example
pow in c++ Code Example pow in c++ Code Example
iterator on std::tuple Code Example iterator on std::tuple Code Example
how to extract a bit from a byte in c++ Code Example how to extract a bit from a byte in c++ Code Example
c++ create a vecto Code Example c++ create a vecto Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8