Ms Dos script gallery !
MS Dos
Samples ( active connection .)
Cut the script and make the necessarily changes in note pad save as *.bat
::Double colons comment a line out so it doesn't run or show. ::To make this work for you just copy and paste with notepad and then ::save it with the extension ".bat". To run it, just double click ::or call it from your program. @ECHO OFF REM Create temporary batch file ECHO @ECHO OFF> REPLY.BAT ECHO SET connect=1>>REPLY.BAT ECHO Checking connection, please wait... ECHO @ECHO OFF> CHKCONN.BAT PING 194.109.6.66 | FIND "Reply from " >>CHKCONN.BAT REM Set "default" value, which may or may not be altered by CHKCONN.BAT SET connect=0 CALL CHKCONN.BAT DEL CHKCONN.BAT DEL REPLY.BAT IF "%connect%"=="0" ECHO You have NO active connection to the internet IF "%connect%"=="1" ECHO You have an active connection to the internet
<
Go back !
>
www.freescripts.4t.com