what is the function to run an exe from within another program, say you wanted to make something like a launch bar.
Thanks in advance.
Printable View
what is the function to run an exe from within another program, say you wanted to make something like a launch bar.
Thanks in advance.
Shell "C:\mydir\myexe.exe", vbNormalFocus
digitalreaper, if you want to load more than EXEs, use the ShellExecute api function.
Code: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
Public Const SW_SHOWNORMAL = 1
Usage
ShellExecute Me.hwnd, vbNullString, "C:\myfile.exe", _
vbNullString, "c:\", SW_SHOWNORMAL