What is the correc tway to call a program using the WinExec API?
I have an install program that I want to run after a Self-extracting Zip file is executed.
Unfortunately, I need to know the WinExec Command to run.
Any ideas?
Printable View
What is the correc tway to call a program using the WinExec API?
I have an install program that I want to run after a Self-extracting Zip file is executed.
Unfortunately, I need to know the WinExec Command to run.
Any ideas?
Just like a command
Code:Private Declare Function WinExec Lib "kernel32" (ByVal lpCmdLine As String, ByVal nCmdShow As Long) As Long
Private Sub Command1_Click()
WinExec "C:\folder\app.exe", 1
End Sub