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
ShellExecute 0, "open", "...\Surfaces_Quadratiques.dwg", vbnullstring, vbnullstring, 1
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionPrivate 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 Const CheDwg = "C:\Documents and Settings\Administrateur\Bureau\Surfaces_Quadratiques.dwg" Private Sub CmdExecute_Click() ShellExecute 0, "open", CheDwg, vbNullString, vbNullString, 1 End Sub