profseer Posted January 14, 2009 Posted January 14, 2009 (edited) HI every one i need help in my batch file i wont make ping site like (google.com)and if ping completenot apper this msg :Ping request could not find host google.com. Please check the name and try again.goto startelse in connection field goto replike thisthis is my code but not work so i need help :----------------------------------------------------------------echo on:dpingping google.com -n 10 set =ssif [%ss%]==[Ping request could not find host google.com. Please check the name and try again.] goto repgoto start:repecho 1- You are not connected to the Internet.-------------------------------------------------------------------i need help in it or if any code work what i wontjust for know i try make (anti net cut)thanks for all Edited January 14, 2009 by profseer
Yzöwl Posted January 14, 2009 Posted January 14, 2009 @Ping -n 1 google.com>Nul@If %errorlevel% Neq 0 (Echo You are not connected to the Internet Ping -n 6 127.0.0.1>Nul&Goto :Eof)::Your commands here
profseer Posted January 16, 2009 Author Posted January 16, 2009 first thanks for all and Special thanks to " Yzöwl "the code work thank youagain thanks to " Yzöwl "
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now