What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Add Registry File (Visual Basic)

Add Registry File (Visual Basic)
Author: Message:
DJeX
Veteran Member
*****

Avatar


Posts: 1138
Reputation: 11
– / Male / –
Joined: Jul 2003
O.P. Huh?  Add Registry File (Visual Basic)
How would I add a reg file to the registry useing Visual Basic? Like I know when you click a reg file it asks you if you want to add the infomation to the registry. But I want it so my VB program will add the reg file to the registry with out any question boxes.
[Image: top.gif]
12-19-2005 11:32 PM
Profile PM Web Find Quote Report
L. Coyote
Senior Member
****

Avatar
Captain Obvious

Posts: 981
Reputation: 49
39 / Male / Flag
Joined: Aug 2004
Status: Away
RE: Add Registry File (Visual Basic)
You can use this command in your program if you want to call an external REG file:
code:
regedit /s [filename]

Hack, hack, hack!
Finally became a Systems Analyst! :spam:

12-20-2005 12:16 AM
Profile PM Find Quote Report
brian
Senior Member
****

Avatar

Posts: 819
Reputation: 43
– / Male / –
Joined: Sep 2004
RE: Add Registry File (Visual Basic)
Or you could possible use the methods on this page: http://www.ilook.fsnet.co.uk/vb/vbreg.htm
12-20-2005 01:09 AM
Profile PM Find Quote Report
DJeX
Veteran Member
*****

Avatar


Posts: 1138
Reputation: 11
– / Male / –
Joined: Jul 2003
O.P. RE: Add Registry File (Visual Basic)
quote:
Originally posted by Leo
You can use this command in your program if you want to call an external REG file:
code:
regedit /s [filename]


How would I do this? With the Shell function?
[Image: top.gif]
12-20-2005 01:45 AM
Profile PM Web Find Quote Report
L. Coyote
Senior Member
****

Avatar
Captain Obvious

Posts: 981
Reputation: 49
39 / Male / Flag
Joined: Aug 2004
Status: Away
RE: Add Registry File (Visual Basic)
quote:
Originally posted by DJeX
How would I do this? With the Shell function?
Yes.

Hack, hack, hack!
Finally became a Systems Analyst! :spam:

12-20-2005 02:39 AM
Profile PM Find Quote Report
DJeX
Veteran Member
*****

Avatar


Posts: 1138
Reputation: 11
– / Male / –
Joined: Jul 2003
O.P. RE: Add Registry File (Visual Basic)
could I have an example because I put:

Shell ("regedit.exe" & "/s" & App.Path & "\" & "Backup\" & "activex.reg")

and that did not work.
[Image: top.gif]
12-20-2005 03:26 AM
Profile PM Web Find Quote Report
Blair
Junior Member
**

Avatar

Posts: 59
35 / Male / –
Joined: Apr 2004
RE: Add Registry File (Visual Basic)
You need a space between  "/s" & App.Path I think, so make it:

code:
Shell ("regedit.exe /s " & App.Path & "\Backup\activex.reg")
[Image: twink.png]
12-20-2005 04:44 AM
Profile E-Mail PM Find Quote Report
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
32 / Male / Flag
Joined: Mar 2003
Status: Online
RE: Add Registry File (Visual Basic)
That should work :)
code:
Shell "regedit.exe /s " & App.Path & "\Backup\activex.reg"
YouTube closed-captions ripper (also allows you to download videos!)
12-20-2005 01:07 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On