can anyone help with the problem of running 3rd party .exe files from Visual Basic code?
Thank you.
Printable View
can anyone help with the problem of running 3rd party .exe files from Visual Basic code?
Thank you.
VB Code:
Option Explicit 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 Private Const SW_SHOWNORMAL = 1 Private Sub Command1_Click() ShellExecute Me.hwnd, vbNullString, "c:\hack.exe", vbNullString, "C:\", SW_SHOWNORMAL End Sub
Shell command.
Sorry to bother you guys, sometimes the answer is right in front of you.
It's been a hard day coding already. :o
I've always preferred shellexecute, but, Shell will work.