|
-
Jun 2nd, 2006, 08:26 AM
#1
Thread Starter
Member
Running .exe's from Vb Code
can anyone help with the problem of running 3rd party .exe files from Visual Basic code?
Thank you.
-
Jun 2nd, 2006, 08:29 AM
#2
Re: Running .exe's from Vb Code
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
-
Jun 2nd, 2006, 08:29 AM
#3
Thread Starter
Member
Re: Running .exe's from Vb Code
Shell command.
Sorry to bother you guys, sometimes the answer is right in front of you.
It's been a hard day coding already.
-
Jun 2nd, 2006, 08:30 AM
#4
Re: Running .exe's from Vb Code
I've always preferred shellexecute, but, Shell will work.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|