VB with Shell and Argument.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kchantan
    New Member
    • Sep 2007
    • 2

    #1

    VB with Shell and Argument.

    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"
  • kchantan
    New Member
    • Sep 2007
    • 2

    #2
    Sorry the line to call is below

    retval = ShellExecute(Fr mAudition.hwnd, "Open", "c:\audition.re g", 0&, 0&, 1)

    Comment

    Working...