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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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