Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Batch file to open viedo file on webpage

Posted on 2011-09-28
12
Medium Priority
?
349 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
The top UI technologies you need to be aware of

An important part of the job as a front-end developer is to stay up to date and in contact with new tools, trends and workflows. That’s why you cannot miss this upcoming webinar to explore the latest trends in UI technologies!

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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
We live in a world of interfaces like the one in the title picture. VBA also allows to use interfaces which offers a lot of possibilities. This article describes how to use interfaces in VBA and how to work around their bugs.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Simple Linear Regression

715 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