I am trying to make a batch file (i guess a *.bat would be ok) but i am not a proggramer. What i want to do is a bat file with 4 steps:
1) Ping a range of ip's (192.168.1.100 to 192.168.1.115)
2) If the script finds at least ONE active IP from the specific range (e.g 192.168.1.104) it continues to ping the ip's. Thus mean it would loop all ip's all the time
3) If the script doesn't find ANY active ip then make my server pc to sleep (not restart). I think the cmd command is :
rundll32.exe powrprof.dll,SetSuspendState 0,1,0
4) If pc wakes then restart all steps 1-3
My server pc is a win7 ultimate X86 laptop
Is that possible?