Come hai inserito le virgolette (usando le doppie virgolette) andrebbe bene, solo che le hai inserite in un punto sbagliato:
codice:
ShellExecute Me.hwnd, "Open", App.Path & "\VLCPortable\VLCPortable.exe", "-f """ & App.Path & "\1x05 - prova.avi""", 0&, 1
Un altro paio di precisazioni:
- per questo mestiere non è necessario usare la ShellExecute, basta la normale istruzione Shell di VB6:
codice:
Shell App.Path & "\VLCPortable\VLCPortable.exe", "-f """ & App.Path & "\1x05 - prova.avi"""
- non è certo se App.Path abbia o meno le virgolette in fondo; nel dubbio bisogna costruire una funzione che le metta se non ci sono:
codice:
Public Function AddBackslash(ByVal inPath As String) As String
If Left$(inPath,1)="""" Then AddBackslash=inPath Else AddBackslash=inPath & "\"
End Function
'...
Shell AddBackslash(App.Path) & "VLCPortable\VLCPortable.exe", "-f """ & AddBackslash(App.Path) & "\1x05 - prova.avi"""
.