I am very new to VB. I need a command to launch/execute a Win32 app in a windows environment. To make it more interesting, I have a list of switches that must follow the command.
Any help is appreciated... thanks ...KUBIE
Printable View
I am very new to VB. I need a command to launch/execute a Win32 app in a windows environment. To make it more interesting, I have a list of switches that must follow the command.
Any help is appreciated... thanks ...KUBIE
You have several possibilities
Or use the Shell functionCode: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
Const SW_SHOWNORMAL = 1
ShellExecute Me.hwnd, vbNullString, "mailto:[email protected]", vbNullString, "C:\", SW_SHOWNORMAL
'or
ShellExecute Me.hwnd,"notepad", vbNullString, vbNullString, "C:\", SW_SHOWNORMAL