Jump to content

Recommended Posts

Posted (edited)

HI every one :hello:

i need help in my batch file :blushing:

i wont make ping site like (google.com)

and if ping complete

not apper this msg :Ping request could not find host google.com. Please check the name and try again.

goto start

else

in connection field

goto rep

like this

this is my code but not work so i need help :

----------------------------------------------------------------

echo on

:dping

ping google.com -n 10 set =ss

if [%ss%]==[Ping request could not find host google.com. Please check the name and try again.] goto rep

goto start

:rep

echo 1- You are not connected to the Internet.

-------------------------------------------------------------------

i need help in it or if any code work what i wont

just for know i try make (anti net cut)

thanks for all

Edited by profseer

Posted
@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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...