ShellExecute Subroutine Example

The following example opens Notepad.

Dim lResult As Long

lResult = ShellExecute(hWnd, "Open", "Notepad.exe", vbNullString, "c:\temp", 4)