Jump to content
Light-O-Rama Forums

Simple batch file for checking if E1.31 is online


_g0d

Recommended Posts

 Well, I got tired of pinging every time I wanted to check to see if my controller was online so I decided to get a little old school and make me a small batch file to do it for me....here it is if anyone needs:

 

 

Heres the code:

@ECHO OFFCLSCOLOR 0ASET CONTROLLER=192.168.0.50REM CHANGE THIS TO YOUR DEVICE'S IP ADDRESS:MAINclsPING -n 1 %CONTROLLER% >NULIF ERRORLEVEL 1 GOTO OFFLINETITLE [%CONTROLLER%]CONTROLLER IS ONLINEECHO [%CONTROLLER%]CONTROLLER IS ONLINE:PROMPTECHO.SET /P CMD=WOULD YOU LIKE TO TEST AGAIN? (Y/N):IF %CMD% EQU Y GOTO MAINIF %CMD% EQU y GOTO MAINGOTO PROMPT:OFFLINETITLE [%CONTROLLER%]CONTROLLER IS OFFLINEECHO DETAILS:PING %CONTROLLER%GOTO PROMPT

And here's a screenshot:

screenshot_2.png

 

if you need help saving it or executing just let me know via PM or post down below, enjoy!

 

(PS: I know its not real pretty, and if there's a need to make it a little complex i have no problem re-coding it for a specific need)

Link to comment
Share on other sites

  • The topic was locked
Guest
This topic is now closed to further replies.
×
×
  • Create New...