If else dos command to check if respond then run bat file

Hi all,

Could you please guide me on this. thanks

If else dos command to check if respond then run bat file.

PING 192.168.1.221
IF Reply {
do call C:\Users\user415\Desktop\batch\yes.bat
}
else {
do pause
}

pause
exit
3 answers Last reply
More about dos command check respond run bat file
  1. any solution? or someone can write to me?
  2. ping 192.168.1.36 | find "TTL=>1"

    if errorlevel=>1 (
    call c:\Users\user415\Desktop\batch\yes.bat
    ) else (
    goto end
    )
    :end

    pause
Ask a new question

Read More

DOS Command Desktops Windows 7