Shell Execute
Permet de lancer des fichiers grace à leur extension ou des exécutables.
- Code : Tout sélectionner
ShellExecute(Byval hwnd As Long, Byval lpOperation As String, Byval lpFile As String, Byval lpParameters As String, Byval lpDirectory As String, Byval nShowCmd As Long)
Const SW_SHOWNORMAL = 1
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
Sub Initialize
ShellExecute 0, "", "C:\Test.xls", "", "C:\", SW_SHOWNORMAL
End Sub