Jump to content

Loading .reg files in a startup script


Recommended Posts

Posted

If you take a look here :

 

http://www.robvanderwoude.com/index.html

 

There is this way of adding a reg file :

 

REGEDIT /S addsome.REG

 

Now obviously you would alter the name of the reg file and you may need to include the path of the regfile ie :

 

REGEDIT /S "C:\somefolder\addsome.REG"

 

And you could use this command in a vbscript by using shell run command :

 

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/wsmthrun.asp

 

which would end up something like so :

 

Set WshShell = WScript.CreateObject("WScript.Shell")

WshShell.Run REGEDIT /S "C:\somefolder\addsome.REG"

 

Let me know how that goes :)

Posted
I will use the regedt32 /s... in the startup script (that will give sufficient priviledges) and I will let you know how it goes. :D
Posted
Just out of curiousty, does the s switch hide any of the error messages if there are any or are you just checking that the registry entries are added afterwards so you Dont have to worry about any error messages ( that is if you get any !! ?? )

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...