_g0d Posted December 5, 2015 Share Posted December 5, 2015 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 PROMPTAnd here's a screenshot: 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 More sharing options...
Recommended Posts