How to handle messages generated by explorer using vb.net

15 pts.
Tags:
VB.NET
Windows Explorer
I have created a application which manipulates the registry entry for some system level keys. I therefore provided a facility to backup those entries in *.reg files using the command Shell("regedit /e " & My.Application.Info.DirectoryPath & "RestoreRestore1.reg HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionRun") Now when i am trying to restore this entry by using the following command Shell("explorer.exe " + My.Application.Info.DirectoryPath + "RestoreRestore1.reg") i am getting this message box saying that "Adding information can unintentionally change or delete values and cause components to stop working correctly. If you do not trust source of this information in restore1.reg do not add it to registry.Are you sure you want to continue?" It has two buttons YES and NO. When i click YES restore of the backup is successful. My question is that how can i handle the the above message using vb.net itself so that the user does not have to click OK button to restore. Thanks in advance!!!

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following