0

I have a few .reg files that I would like to be able to call from my app. How can I call these .reg files from an OnClick event? Is there a better way that I can do this?

2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by RenanLazarotto
1

If you don't want to show any message (when you import a reg file from windows, it warns), you'll need to code it by yourself. Check this link http://www.codeproject.com/KB/vb/registry_with_vb.aspx, this one http://www.macoratti.net/vbn_reg.htm (it is in portuguese, use google translate) or even this one http://msdn.microsoft.com/en-us/library/aa289494%28v=vs.71%29.aspx.

But, if you don't care about it, you can try using

Process.Start("regedit.exe", "path to reg file")

A quick search on google may help even more.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.