Subject: Command Button event WMV File
Posted By: C.W. Clark Post Date: 8/7/2006 8:41:25 AM
Hello to all.....I searched the forums but was having trouble finding any related posts....if there is one please redirect me and I apologize for the post...if one does not exist, well here's what I'm trying to figure out:

I'm using time study software that is based in an excel environment....I usually record the operation to be timed and study it that way.....after the study has been completed and the standards saved.....I assign a command button to the a particular sheet labeled "PLAY VIDEO"....I thought I would be able to do the following:

private sub command_button1_click
Shell ("C:example\example\example.wmv")
end_sub

However it returns a file not found error.

Windows media player is playing the video.....it is an mpeg1 format....do i need to write code to open the player and then tell it which file to play. Any help would be appreciated....excuse the script above....I know it's not 100% accurate...let me know if you need any more info. Thanks for your time in advance.

Reply By: jrogers Reply Date: 8/7/2006 8:51:09 AM
you need to specify which file you want to run.. like this

Shell ("C:\Program Files\Windows Media Player\wmplayer.exe C:\example\example\example.wmv")


Reply By: C.W. Clark Reply Date: 8/7/2006 9:36:09 AM
Thanks for the help.....However....when I try to launch the file this way Windows media player will not recognize the file type ".mpg"....however if you go to the file and open it directly it plays it just fine....I'm using version 9....and it supports .mpg....

Shell "C:\Program Files\Windows Media Player\wmplayer.exe C:\example\example\example.mpg"

I copied the file location directly from the WMP when the video was queued up....back to the drawing board...


Go to topic 48078

Return to index page 210
Return to index page 209
Return to index page 208
Return to index page 207
Return to index page 206
Return to index page 205
Return to index page 204
Return to index page 203
Return to index page 202
Return to index page 201