Page 1 of 1

Remotely close Program

Posted: 11 Jan 2017 09:52
by Toddvg
HELP PLEASE!

Ok here is my situation.. I purchased the new apple TV and for some reason almost everytime I go to watch a movie in my Library my Library has been disconnected and I need to walk upstairs, close ITUNES then reopen it, then back downstairs and all is good.

I have been looking for a way that I could hit a link on my phone that would automatically close ITUNES and then reopen it. I have started with sending a text thru a IFTTT command that would then install a TXT file in a ONEDRIVE folder, then I have a scheduled Task that runs every 5min that looks for that file and if it exists than ITUNES closes and then reopens.

My script has not really worked so I need help with that.. Or I am looking for another method that will allow me to close ITUNES and REOPEN it remotely.

The script would be basically
IF File exists C:\users\todd\onedrive\command\itunes.txt
check if iTunes is open or Closeed

#1 if ITunes is Closed
#2 if ITUNES is open

#1 Open c:\program files\iTunes\ITunes.exe

#2 Close c:\program files\iTunes\ITunes.EXE
wait 10 sec
Open c:\program files\iTunes\ITUNES.exe

Del File C:\users\todd\onedrive\command\itunes.txt

ANY IDEAS????

Re: Remotely close Program

Posted: 11 Jan 2017 14:08
by Squashman
Why not load a remote desktop client on your phone or tablet to control your computer.

Re: Remotely close Program

Posted: 13 Jan 2017 14:35
by hckR360
wait... how can you launch a batch file on apple? it is a linux-based system, no?

Re: Remotely close Program

Posted: 14 Jan 2017 09:56
by Squashman
hckR360 wrote:wait... how can you launch a batch file on apple? it is a linux-based system, no?

Apple TV syncs with iTunes on a Windows PC.