vnavna Posted October 18, 2007 Share Posted October 18, 2007 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. Link to comment Share on other sites More sharing options...
herewasplato Posted October 18, 2007 Share Posted October 18, 2007 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] Link to comment Share on other sites More sharing options...
vnavna Posted October 18, 2007 Author Share Posted October 18, 2007 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. Link to comment Share on other sites More sharing options...
vnavna Posted October 18, 2007 Author Share Posted October 18, 2007 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","") Link to comment Share on other sites More sharing options...
herewasplato Posted October 18, 2007 Share Posted October 18, 2007 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] Link to comment Share on other sites More sharing options...
vnavna Posted October 18, 2007 Author Share Posted October 18, 2007 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! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now