Jump to content

ruelle

Member
  • Posts

    2
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    Italy

About ruelle

Profile Information

  • OS
    Windows 7 x64

ruelle's Achievements

0

Reputation

  1. http://ss64.org/viewtopic.php?pid=8188 http://stackoverflow.com/questions/28304099/batch-script-to-ping-other-pc-in-my-lan-and-shutdown-together-last-online-pc http://www.msfn.org/board/topic/173438-shutdown-last-running-pc-on-the-lan-with-server/ http://forum.synology.com/enu/viewtopic.php?f=145&t=96609&p=364122#p364122 http://www.dostips.com/forum/viewtopic.php?f=3&t=6245 I think last one will be more easy to use thank you for the answer! @echo off set "flag=" ping 192.168.1.1 -n 2 |find /i "TTL=" >nul && set flag=1 ping 192.168.1.2 -n 2 |find /i "TTL=" >nul && set flag=1 ping 192.168.1.3 -n 2 |find /i "TTL=" >nul && set flag=1 ping 192.168.1.4 -n 2 |find /i "TTL=" >nul && set flag=1 if not defined flag echo shutdown server
  2. I have a LAN with 4 PCs and one Synology server. I wish that every time a computer is turned off, it runs a batch (from windows pc) and see if other PCs are on, - if any is on do nothing, - otherwise runs a command that shuts down the server. Here is what I have at the moment: @echo off PING 192.168.1.10 IF %ERRORLEVEL% EQU 1 plink root@192.168.1.10 -pw MYPASSWORD shutdown -s -t 00 But I would like to do something like: http://i.imgur.com/BLAVCBt.png THANK YOU!!
×
×
  • Create New...