Solved

Batch file to open viedo file on webpage

Posted on 2011-09-28
12
344 Views
Last Modified: 2012-05-12
I am looking to open a news video every day at 3 pm in full mode without having to do it myself every day. I am looking to write a batch or script file that would do this for me but don't know the correct code. any help would be great. thank you.
0
Comment
Question by:jodyreid
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 4
12 Comments
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 36718721
If the url is the same every time, you could just launch that. If it changes, and for the full screen, you would need to work with the API for the website (if it has one) or use something like AutoHK instead of .bat to send the commands to the window.
0
 

Author Comment

by:jodyreid
ID: 36718765
How do you use theURL in a batch file? sorry it has been awhile since i used batch files.
Thank you.
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 36718963
You would just call the browser's executable and send the url as a parameter. Something like:

"C:\Program Files\Internet Explorer\iexplore.exe" "http://www.experts-exchange.com"
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 37

Expert Comment

by:TommySzalapski
ID: 36718982
Actually this should work too
start iexplore "http://www.experts-exchange.com
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 36719067
If the url has any % characters, double them up. For example
http://www.somerandomurl/video%20watch
you would use
start iexplore "http://www.somerandomurl/video%%20watch

It's possible that there are urls that will get you directly to the fullscreen version. For example, on youtube, instead of

start iexplore "http://www.youtube.com/watch?v=EIyixC9NsLI"

which takes you to the regular video, you could use

start iexplore "http://www.youtube.com/v/EIyixC9NsLI"

which will load it full in the browser. This trick will change depending on the site.

Then you can open Internet Exploerer in kiosk mode so it goes full screen like this

start iexplore -k "http://www.youtube.com/v/EIyixC9NsLI"
0
 

Author Comment

by:jodyreid
ID: 36719158
How do you find the link name for the video i need. The url only gives me the web page the video is located on but not the video link.
Thank you.
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 36719362
Depends on the website. When you click to watch the video, what happens to the address bar? I'm guessing they use a new random url for the video each day so it may not be an easy task.

It will probably be easier if you just post the website you are working with.
0
 

Author Comment

by:jodyreid
ID: 36719414
http://www.rte.ie/live/ is the url and is is the second tab (News now)
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 36719489
Okay. The good news is that it's the same link every time. The bad news is that it's embedded in javascript so there is no direct url that I can find from looking at the page source.

You could probably get someone here in the Java zone to help you write a java script to start the video, but a batch script needs a direct URL (one may exist, but it isn't apparent).
0
 
LVL 37

Expert Comment

by:TommySzalapski
ID: 36719494
Since it's available as a Windows Media stream you could also perhaps launch it in media player (or real player). Just start the news going in the player and save it as a playlist.
0
 

Author Comment

by:jodyreid
ID: 37006197
Any more help with this. Thank you.
0
 
LVL 37

Accepted Solution

by:
TommySzalapski earned 500 total points
ID: 37047568
Adding "Java zone" as a tag doesn't actually do anything. You could hit "request attention" and ask that the Java zone be added or you could close this one out since "You can't do it with this video" is the correct answer to the original question and then open a new question in the Java zone.

The second option is the better one since new questions usually get more attention then moved ones and it follows EE's guidelines a bit better for asking questions.

Make sure to include the actual url of the video in question if you post a new question.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
mpeg to mp4 free tool 8 108
Android development question 2 76
Microsoft volume license for installation 11 47
Bot application - advice 3 58
This is an explanation of a simple data model to help parse a JSON feed
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

735 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question