Jump to content
Sign in to follow this  
vnavna

autoplay a .wmf file command

Recommended Posts

vnavna

I am trying to figure out if there is a way to script a launching of a video file that will play in either wmplayer classic or Windows media player. I am going for the classic version more so due to the fact that I can set the repeat setting up in the registry.

If anyone knows how to call or start a specific video file without having to open up the media player application first please let me know.

Otherwise I will just have to go back to a simple batch command.

Share this post


Link to post
Share on other sites
herewasplato

The Run() function with the path the player of choice followed by the file to be played?


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
vnavna

I can't get it to work. If I just put in the application path media player will work but when I put the path to the .wmv file it fails. I doesn't call up the application at all.

Share this post


Link to post
Share on other sites
vnavna

Here is what I am using for a test.

Run("C:\Program Files\Windows Media Player\wmplayer.exe", "C:\Documents and Settings\username\My Documents\My Videos\INK.wmv","")

Share this post


Link to post
Share on other sites
herewasplato

Run('"C:\Program Files\Windows Media Player\wmplayer.exe " "C:\Documents and Settings\username\My Documents\My Videos\INK.wmv"')

Note:

The space after the .exe before the double quote.

No comma between the exe and its parameter (the file to be played).

I only tested the syntax using Media Player Classic.

Sorry - I could not post/test the syntax in my earlier post.


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites
vnavna

IT WORKED!! That comma got me screwed up. I guess I didn't realize it was not supposed to be in there.

Thank you sooo much.

I wish there was some more info on where to put the quotations in some of these situations.

I would buy you a beer if I could, again Thank You!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×