I used the code below..
Public Declare Function ShellExecute Lib "shell32.dl l" Alias "ShellExecu teA" (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
And then use this function:
retval = ShellExecute(Fr mAudition.hwnd, "Open", "c:\audition.re g", vbokstring, 0&, 1)
Then the registry application need user to answer "Yes" or "No" to proceed.
How do I add the argument to send "Yes" autometically for the shellExecute line without user to select "Yes" or "No"
Public Declare Function ShellExecute Lib "shell32.dl l" Alias "ShellExecu teA" (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
And then use this function:
retval = ShellExecute(Fr mAudition.hwnd, "Open", "c:\audition.re g", vbokstring, 0&, 1)
Then the registry application need user to answer "Yes" or "No" to proceed.
How do I add the argument to send "Yes" autometically for the shellExecute line without user to select "Yes" or "No"
Comment