By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,101 Members | 1,340 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,101 IT Pros & Developers. It's quick & easy.

VB with Shell and Argument.

P: 2
I used the code below..

Public 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

And then use this function:

retval = ShellExecute(FrmAudition.hwnd, "Open", "c:\audition.reg", 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"
Sep 16 '07 #1
Share this Question
Share on Google+
1 Reply

P: 2
Sorry the line to call is below

retval = ShellExecute(FrmAudition.hwnd, "Open", "c:\audition.reg", 0&, 0&, 1)
Sep 16 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.