G GKite Registered User. Local time Today, 15:03 Joined Mar 22, 2002 Messages 29 Mar 25, 2002 #1 OK so can anyone tell me what's wrong with this code? When I run it I get an 'invalid call or procedure' error. Dim strSong As String Dim RetVal strSong = "C:\softjuke\files\28.mp3" RetVal = Shell(strSong, 1)
OK so can anyone tell me what's wrong with this code? When I run it I get an 'invalid call or procedure' error. Dim strSong As String Dim RetVal strSong = "C:\softjuke\files\28.mp3" RetVal = Shell(strSong, 1)
C cpod Registered User. Local time Today, 09:03 Joined Nov 7, 2001 Messages 107 Mar 25, 2002 #2 The shell statement requires the name and path of the application use to open the file: RetVal = Shell("c:\program files\musicplayer.exe " & strSong, 1)
The shell statement requires the name and path of the application use to open the file: RetVal = Shell("c:\program files\musicplayer.exe " & strSong, 1)
G GKite Registered User. Local time Today, 15:03 Joined Mar 22, 2002 Messages 29 Mar 25, 2002 #3 You are correct! Thanks that worked like a charm.