Client Management Suite

 View Only
  • 1.  Script to Close and restart program

    Posted Jan 10, 2017 02:10 PM
    Looking for some help, I have been playing around with IFTTT's for a few tasks on one of the networks I control. With some success and some not so. I also want part of my next one to help with an iTunes Apple TV issue. I want to shut iTunes down on a remote pc and then restart it. I am doing this by texting IFTTT which puts a txt file in a Dropbox folder on the pc. The new script would run on a schedule that basically says if this file exists here than close iTunes wait 300 ms and restart iTunes than Del file ?? Need help with the script. Unless anyone has a faster way to remote close a program and restart it, via iPhone


  • 2.  RE: Script to Close and restart program

    Posted Jan 11, 2017 08:30 AM

    This is untested.

    You could have a batch script

    taskkill /im itunes.exe /f
    
    Pause - set your timeout time
    SLEEP 10
    

    Open iTunes - find where itunes is located

    start "" "C:\Program Files\iTunes\iTunes.exe"