Sign in to follow this  
Followers 0
Twar3Draconis

Exporting a Registry key to a .REG file

5 posts in this topic

How would I export a registry entry into a .REG file?

I've been working on making an application usable from a USB drive, with changeable settings, and those come from the registry. Up to this point, I have the program load a .reg file into the registry with:

RunWait("regedit.exe /s File.reg", @ScriptDir)

and at the end, I have it running:

RunWait("regedit.exe /s File2.reg", @ScriptDir)

File2.reg removes the registry entries.

Share this post


Link to post
Share on other sites



It's not working. If it helps, I am trying to store a whole registry directory into a .reg file. Ex: HKEY_CURRENT_USER\Software\Something\

Share this post


Link to post
Share on other sites

RunWait('regedit.exe /e "' & @ScriptDir & '\File.reg" "HKEY_CURRENT_USER\Software\Adobe"')

Share this post


Link to post
Share on other sites

How would I export a registry entry into a .REG file?

I've been working on making an application usable from a USB drive, with changeable settings, and those come from the registry.

Hey bud, I've been working on similar projects and I came across this script which is awesome. It works better than using regedit since some admins disable regedit functions. Enjoy.

http://www.autoitscript.com/forum/index.ph...mp;#entry316035

Share this post


Link to post
Share on other sites

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
Sign in to follow this  
Followers 0