edit help with .bat shell script
I'm wanting to create a basic script that allows a user to input a ping. and outputs the information just like command prompt ping 192.168.1.1 or whatever.. I found this script and was hoping it would get me on the right track.. can i edit this to allow the user to enter their own ping address..?
@ping x.x.x.x > nul
@IF ERRORLEVEL 1 GOTO dead
@IF ERRORLEVEL 0 GOTO alive
:dead
@net send x.x.x.x Dead
@ECHO Dead
@GOTO end
:alive
@net send x.x.x.x Alive
@ECHO Alive
@GOTO end
:end
@ECHO Goodbye
|