vnavna 0 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. Share this post Link to post Share on other sites
herewasplato 3 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] Share this post Link to post Share on other sites
vnavna 0 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. Share this post Link to post Share on other sites
vnavna 0 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","") Share this post Link to post Share on other sites
herewasplato 3 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] Share this post Link to post Share on other sites
vnavna 0 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! Share this post Link to post Share on other sites