hog Posted August 31, 2005 Posted August 31, 2005 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: Public gstrRealPlayerPath As String = """C:\Program Files\Real\RealPlayer\realplay.exe""" I then add this when the user selects the movie file of choice: 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 Quote My website
Leaders dynamic_sysop Posted August 31, 2005 Leaders Posted August 31, 2005 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: 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. Quote
hog Posted September 1, 2005 Author Posted September 1, 2005 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 Quote My website
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.