Real Player woes!

hog

Well-known member
Joined
Mar 17, 2003
Messages
984
Location
UK
I am calling realplayer from within my app using shell. If I just call the player it works OK, realplayer opens.

If I tack on the file name I want to open realplayer opens but I then get a general error from it saying this: http://100_0942.MOV

I have the path to realplayer as:

Code:
Public gstrRealPlayerPath As String = """C:\Program Files\Real\RealPlayer\realplay.exe"""

I then add this when the user selects the movie file of choice:

Code:
Dim strPlayerAndFilePath As String = gstrRealPlayerPath & " """ & Me.cboMovies.SelectedItem & """"

I then pass strPlayerAndFilePath to shell.

With or without quotes I get the error?

If I run realplayer manually and open the mov file it works?

If I modify the shortcut to include the mov file name it works?

Have I missed something?

Thanks
 
you seem to have a lot of quotes on the realplayer path , this line ...
Public gstrRealPlayerPath As String = """C:\Program Files\Real\RealPlayer\realplay.exe"""
did you know that you can specify a file path with either an @ symbol or double back slashes \\ , eg:
Code:
Public gstrRealPlayerPath As String = @"C:\Program Files\Real\RealPlayer\realplay.exe" 
or 
Public gstrRealPlayerPath As String = "C:\\Program Files\\Real\\RealPlayer\\realplay.exe"
it may be that the extra "" are causing a problem.
 
Ooow I did not know that! But I do now thnx :)

I just came back to say I found the problem. I did not include the explicit path to the movie file! Plonker :o

I had included all the quotes as part of various attempts to resolve the error.

Thnx
 
Back
Top