Come hai inserito le virgolette (usando le doppie virgolette) andrebbe bene, solo che le hai inserite in un punto sbagliato:
Un altro paio di precisazioni:codice:ShellExecute Me.hwnd, "Open", App.Path & "\VLCPortable\VLCPortable.exe", "-f """ & App.Path & "\1x05 - prova.avi""", 0&, 1
- per questo mestiere non è necessario usare la ShellExecute, basta la normale istruzione Shell di VB6:
- 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:Shell App.Path & "\VLCPortable\VLCPortable.exe", "-f """ & App.Path & "\1x05 - prova.avi"""
.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"""

Rispondi quotando