15 pts.
 How to handle messages generated by explorer using vb.net
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!!!

Software/Hardware used:
ASKED: May 12, 2009  6:05 PM
UPDATED: May 12, 2009  6:53 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _