Shell function not working! :(

GKite

Registered User.
Local time
Today, 15:03
Joined
Mar 22, 2002
Messages
29
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)
 
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)
 
You are correct! Thanks that worked like a charm.
 

Users who are viewing this thread

Back
Top Bottom