Sign-in / Sign-up
Your question

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

Tags:
  • DOS Command
  • Desktops
  • Windows 7
Last response: in Windows 7
June 30, 2014 9:34:33 PM

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

More about : dos command check respond run bat file

July 1, 2014 1:46:51 AM

any solution? or someone can write to me?
m
0
l
July 1, 2014 1:51:04 AM

ping 192.168.1.36 | find "TTL=>1"

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

pause
m
0
l