To powinno Ciebie zainteresować:
- Dos [ tutorial ] [ MS-DOS Layered Structure ] [ dos2unix ] [ baza skryptów ]
P.S. 
:: is_connected.bat || is_connected.cmd
@ECHO OFF
ECHO Checking connection, please wait...
PING 195.78.67.13 | FIND "Reply from " > NUL
IF NOT ERRORLEVEL 1 ECHO You have an active connection to the internet
IF ERRORLEVEL 1 ECHO You have NO active connection to the internet