Remotely close Program

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Toddvg
Posts: 1
Joined: 11 Jan 2017 09:45

Remotely close Program

#1 Post by Toddvg » 11 Jan 2017 09:52

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????

Squashman
Expert
Posts: 4465
Joined: 23 Dec 2011 13:59

Re: Remotely close Program

#2 Post by Squashman » 11 Jan 2017 14:08

Why not load a remote desktop client on your phone or tablet to control your computer.

hckR360
Posts: 5
Joined: 24 Dec 2016 20:48

Re: Remotely close Program

#3 Post by hckR360 » 13 Jan 2017 14:35

wait... how can you launch a batch file on apple? it is a linux-based system, no?

Squashman
Expert
Posts: 4465
Joined: 23 Dec 2011 13:59

Re: Remotely close Program

#4 Post by Squashman » 14 Jan 2017 09:56

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.

Post Reply