I am storing the folder and file name in text field Location.Text like
D:\Movies\Barnyard.avi (No spaces in the name)

I use the following code to play the movie in Windows Media Player from within my VB6 program

HTML Code:
 Shell "C:\Program Files\Windows Media Player\wmplayer.exe" & " " & Location.Text & " "
This works perfectly if there are no spaces in the file name.

When their are spaces in the movie name like D:\Movies\Dirty Dancing.avi then Media Player give following message: "The selected file has an extension (.) that is not recognised by Windows media Player.

I suspect it has something to do with the quotations in the code:
wmplayer.exe" & " " & Location.Text & " "
but I just can't get it right

PS when selecting GOM Player to play the movie it play both ways without any problems