I've made a VB 5 program that launches WinAmp to play MP3 music.
All works fine when I launch MP3 "normal" names (i.e. crises.mp3).
The problem is I get an error when I try something like tubular bells.mp3. WinAmp understands spaces in name as separate files, so it tries to load tubular.mp3 and bells.mp3.
So the question is simple: how can I nest quotation marks? I need the double ones inside, so it can't be " ' " (it's a pity 'cause VB takes this as correct). VB says it's wrong the form ' " '. At least I think this is the correct form, as looking inside the Windows Explorer and the registered files, it says the order to play a winamp file is "winamp.exe" "<name>.mp3".
Actually I use the code:
Dim xVar As Double
Dim cParam As String
Dim cVarExe As String
cParam = App.Path + "Oldfield\tubular bells II.mp3" ' It's an example
cVarExe = (cProgram + " " + cParam)
xVar = Shell(cVarExe, vbMinimizedFocus)
The question about the nesting is easy, so I put 50 points. But if you want to answer the exact code syntax for launching the WinAmp 2.60, you can ask me to increase points to 100.