Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 355
  • Last Modified:

Batch file to open viedo file on webpage

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
jodyreid
Asked:
jodyreid
  • 8
  • 4
1 Solution
 
TommySzalapskiCommented:
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
 
jodyreidIT ManagerAuthor Commented:
How do you use theURL in a batch file? sorry it has been awhile since i used batch files.
Thank you.
0
 
TommySzalapskiCommented:
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
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

 
TommySzalapskiCommented:
Actually this should work too
start iexplore "http://www.experts-exchange.com
0
 
TommySzalapskiCommented:
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
 
jodyreidIT ManagerAuthor Commented:
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
 
TommySzalapskiCommented:
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
 
jodyreidIT ManagerAuthor Commented:
http://www.rte.ie/live/ is the url and is is the second tab (News now)
0
 
TommySzalapskiCommented:
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
 
TommySzalapskiCommented:
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
 
jodyreidIT ManagerAuthor Commented:
Any more help with this. Thank you.
0
 
TommySzalapskiCommented:
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

  • 8
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now