Programming: batch files:Connection Checker
wan't to learn batch programming? Check this one out!
This is a small connection checking tool.
It tests your connection and searches for connection devices.
@echo off
title connection tester
color 0a
ping localhost -n 1 >nul
:menu
cls
set "%c%" == "0"
echo.
echo -----------------------------------------------
echo.
echo What would you like to do?
echo.
echo 1. Check for connection devices.
echo 2. Check for internet connection.
echo 3. Quit
echo.
echo -----------------------------------------------
set /p c=Your Choise:
if "%c%" == "1" goto devices
if "%c%" == "2" goto connection
if "%c%" == "3" goto exit
goto menu
:devices
cls
echo Checking for connection devices...
ipconfig
ping localhost -n 2 >nul
cls
if errorlevel 1 goto nodevice
if errorlevel 0 goto yesdevice
cls
echo.
echo Checking status of connection deviced failed...
echo.
ping localhost -n 2 >nul
goto menu
:nodevice
cls
echo.
echo No connection devices found.
echo.
echo press any key to return to menu
pause >nul
goto menu
:yesdevice
cls
echo Connection devices found!
echo.
echo Enter "view" to view devices, or press enter to go back to the menu.
set /p view=
if "%view%" == "view" goto ipconfiguration
goto menu
:ipconfiguration
cls
echo checking devices...
ping localhost -n 2 >nul
cls
ipconfig
echo.
echo.
echo.
echo press any key to return to menu...
pause >nul
goto menu
:connection
cls
echo.
echo Checking internet connection
ping http://www.google.com >nul
cls
if errorlevel 1 goto nointernet
if errorlevel 2 goto internet
cls
echo Checking connection failed.
echo.
echo returning to menu...
ping localhost -n 2 >nul
cls
goto menu
:nointernet
cls
echo.
echo No connection found.
echo.
echo press any key to return to menu...
pause >nul
cls
goto menu
:internet
cls
echo.
echo Internet connection found!
echo.
echo Press any key to return to menu...
pause >nul
goto menu
:exit
cls
echo -----------------------------------------------
echo.
echo Made by RisingDevil
echo.
echo -----------------------------------------------
cls
Designed and Created By RisingDevil.
Also check my youtube channel : http://www.youtube.com/arturconfituur or click here (will open in new window)
Nothing Found!
Why not submit your own content? Signup here.
-
XA Transaction - Solution for Transaction More Than One Database | By H4d1 | in Programming
Have you ever think that it's too difficult for making database transaction in two different places (or databases) ...
-
Javascript functions for : trim, right trim, left trim, no Apostrophe, is Empty , is Digit , VarChar To Number , is integer , check Is Zero , Get Que | By xxris | in Programming
Javascript functions for : trim, right trim, left trim, no Apostrophe, is Empty , is Digit , VarChar To Number , i...
-
How to access and use a Window's command line | By MaxwellPayne | in Programming
Learn about the Window's command line in DOS and how to use it....
-
How to Learn to Program Your Computer | By dsj8760 | in Programming
This article is about learning to program a computer. It is a general article giving tips on how to learn about pro...
-
Jailbroken iPhones get RickRolled | By explorer | in Programming
First iPhone worm, attacks via SSH and does the classic rick roll gag on the user....
-
Rising Admin Hacker | By risingdevil | in Software
You dont own your own computer, adn you dont have an admin account? Tired of all the "Admin Confirmation Reuired" b...








Another one! You are good, keep it up. : )