DosTips.com

A Forum all about DOS Batch
It is currently 24 Jun 2017 13:12

All times are UTC-06:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Remotely close Program
PostPosted: 11 Jan 2017 09:52 
Offline

Joined: 11 Jan 2017 09:45
Posts: 1
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????


Top
   
PostPosted: 11 Jan 2017 14:08 
Offline
Expert

Joined: 23 Dec 2011 13:59
Posts: 3507
Why not load a remote desktop client on your phone or tablet to control your computer.


Top
   
PostPosted: 13 Jan 2017 14:35 
Offline

Joined: 24 Dec 2016 20:48
Posts: 5
wait... how can you launch a batch file on apple? it is a linux-based system, no?


Top
   
PostPosted: 14 Jan 2017 09:56 
Offline
Expert

Joined: 23 Dec 2011 13:59
Posts: 3507
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: Bing [Bot] and 15 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited