Comment lancer un programme a partir du chemin sans donnée le nom du programme
Bonjour
Je cherche a faire comme un shellexecute en vb6 sur visual studio, pour pouvoir lancer un programme a partir du chemin sans donnée le nom du programme.
Quelqu'un a une suggestion
j'ai essayer ça, ça ne marche pas
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| 'Private Const SW_SHOWNORMAL = 1
'Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
'Private Declare Function ShellExecute _
' Lib "shell32.dll" _
' Alias "ShellExecuteA" ( _
' ByVal hwnd As Long, _
' ByVal lpOperation As String, _
' ByVal lpFile As String, _
' ByVal lpParameters As String, _
' ByVal lpDirectory As String, _
' ByVal nShowCmd As Long) _
' As Long
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
'ShellExecute(NULL, "open", "C:\Users\kosvore\Videos\Le_cognac.mp4", vbNullString, "C:\Users\kosvore\Videos\", SW_SHOWNORMAL) |
Merci.