Welcome to Synthiam!

Program robots using technologies created from industry experts. ARC is our free-to-use robot programming software that makes features like vision recognition, navigation and artificial intelligence easy.

Get Started
Asked — Edited

Ez-B & Windows Media Player ?

Hey All

I have a embedded PC on my robot with a screen.
I have tried to use the "Exec" command to get a movie to play on the screen through Windows Media Player.

Exec("C:\Program Files\Windows Media Player.exe", "D:\Movies\movie.wmv")
(The movie.wmv is on the D: drive of the system.)

Error: "The system cannot find the file specified"

I am sure the file call is correct, so it got me thinking can it call up the media player to play a movie?


Herr

United Kingdom
#1  
If WMV files are associated with WMP I assume Exec"("D:\Movies\movie.wmv") would work?

In fact, I know it would. I just tested it executing an MP3 and up pops WMP with the MP3 :). The same would work for any file extension association.
#2  
HAH

Finally found my problem.

From:
Exec("C:\Program Files\Windows Media Player.exe", "D:\Movies\movie.wmv")


I should have had:
Exec("C:\Program Files\Windows Media Player\wmplayer.exe", "D:\Movies\movie.wmv")

After missing the wmplayer.exe came back to post, then REREAD your post I see all that was needed was the shorter version.

Exec("D:\Movies\movie.wmv")

Live and learn.


Thanks for the help Rich.
United Kingdom
#3  
Your way is the better way. If your WMV is ever not associated with WMP it could confuse Windows, and that's never a good thing (or difficult).