I believe that I have somehow messed up my Shell command, because like an idiot I changed the VBA when WiunAmp did not pick up the file!
Code: Select all
Function PlayWinAmp(strFullname As String)
Dim strCmd As String
strCmd = """C:\Program Files (x86)\Winamp\Winamp.exe"" " & """" & strFullname & """"
Debug.Print strCmd
Shell strCmd
End Function
Sub TESTPlayWinAmp()
Dim strFullname As String
strFullname = "T:\Greaves\Products\USER\Playr\20210815_1036.M3U"
Call PlayWinAmp(strFullname)
End Sub
Further, when from WinAmp I browse to that file, WinAmp opens the M3U and starts playing seven hours of music. I believe that the file created is valid and that Winamp has no problem with the file.
I think that the problem lies within my use of the Shell command. The Debug.print statement within my function causes this to appear in the immediate window.
I have tried a few variations on the use of double-quotes in the command line with little effect.
Any suggestions would be greatly appreciated.
Thanks
Chris