Script that opens Video file

I would like to have a BAT file or VBscript file that opens video file and Run it every hour for 8 hours.

I mean the video will be run at 8am , then at 9 am and so on till 4 pm and that's it.

Thank you
jskfanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bill PrewCommented:
Easiest way to do this is with Windows Task Scheduler.  Just create a job there that runs hourly, starting at 8:00 and only runs 8 times.

The command in the job can just be the name of the video file, it should open it with the default player configured in Windows.

http://windows.microsoft.com/en-US/windows/schedule-task#1TC=windows-7

Let us know if you need more help with Task Scheduler.

~bp
0
jskfanAuthor Commented:
I browsed to video file in the task scheduler but did not run...
There should be a command that will run the video ?
0
jskfanAuthor Commented:
by the way it is .mp4 file
0
Cloud Class® Course: Microsoft Exchange Server

The MCTS: Microsoft Exchange Server 2010 certification validates your skills in supporting the maintenance and administration of the Exchange servers in an enterprise environment. Learn everything you need to know with this course.

Bill PrewCommented:
How do you view the video normally, without Task Scheduler?

~bp
0
jskfanAuthor Commented:
I view it with VLC media player
0
Bill PrewCommented:
Okay, that has a comment line interface, so should work.

You will need to locate the vlc.exe executable file, like in program files area.  Once you determine that, you can use that as the program to execute from Task Scheduler, and then pass it a command line parameter of the full path to the video file.  If either the vlc.exe path, or the video path contain spaces you may need to surround each of those with double quotes.

~bp
0
jskfanAuthor Commented:
For simplicity sake..I am going to run the video in different computer where VLC player install may  not be allowed..in this case how can I make the video  run from the built-in windows media player ?
0
Bill PrewCommented:
Same idea as I mentioned for VLC above.  Locate windows media player EXE file - typically in either of these two locations for recent builds of Windows, depending on 32bit versus 64bit:

C:\Program Files (x86)\Windows Media Player\wmplayer.exe
C:\Program Files\Windows Media Player\wmplayer.exe


Then in Task Scheduler build the command line to represent:

"C:\Program Files (x86)\Windows Media Player\wmplayer.exe" "Z:\folder\filename.wma"

~bp
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Mauro CazabonnetSenior Software EngineerCommented:
Powershell timer

Get-EventSubscriber
#Unregister-Event -SubscriptionId 6

$Timer = New-Object Timers.Timer
$Timer.Interval = 20000
$Timer.Enabled = $True
Register-ObjectEvent -InputObject $timer -EventName Elapsed -SourceIdentifier WmPlayer  -Action {c:\test\small.mp4}

Open in new window

0
jskfanAuthor Commented:
Bill Prew approach is easier and it already works..I just wanted the video to run in maximized mode.
0
jskfanAuthor Commented:
Ok Figured it out. just added /fullscreen after this :"Z:\folder\filename.wma" /fullscreen
0
jskfanAuthor Commented:
Thanks
0
Bill PrewCommented:
Thanks, glad that was helpful.

~bp
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
VB Script

From novice to tech pro — start learning today.

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.