Skip to content

Instantly share code, notes, and snippets.

@jpluimers
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpluimers/9393147 to your computer and use it in GitHub Desktop.
Save jpluimers/9393147 to your computer and use it in GitHub Desktop.
Copies the HKLM settings from GExperts 2007 to HKCU.
type NUL > %temp%\GExperts-D2007-HKCU.reg.txt
>> %temp%\GExperts-D2007-HKCU.reg.txt echo Windows Registry Editor Version 5.00
>> %temp%\GExperts-D2007-HKCU.reg.txt echo [HKEY_CURRENT_USER\Software\Borland\BDS\5.0\Experts]
if exist %temp%\GExperts-D2007-HKLM.reg.txt del %temp%\GExperts-D2007-HKLM.reg.txt
reg export HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Borland\BDS\5.0\Experts %temp%\GExperts-D2007-HKLM.reg.txt
type C:\Users\Dames\AppData\Local\Temp\GExperts-D2007-HKLM.reg.txt | find "GExpertsDelphi2007.dll" >> %temp%\GExperts-D2007-HKCU.reg.txt
if exist %temp%\GExperts-D2007-HKLM.reg.txt del %temp%\GExperts-D2007-HKLM.reg.txt
reg export HKEY_LOCAL_MACHINE\SOFTWARE\Borland\BDS\5.0\Experts %temp%\GExperts-D2007-HKLM.reg.txt
type C:\Users\Dames\AppData\Local\Temp\GExperts-D2007-HKLM.reg.txt | find "GExpertsDelphi2007.dll" >> %temp%\GExperts-D2007-HKCU.reg.txt
reg import %temp%\GExperts-D2007-HKCU.reg.txt
del %temp%\GExperts-D2007-HKCU.reg.txt
if exist %temp%\GExperts-D2007-HKLM.reg.txt del %temp%\GExperts-D2007-HKLM.reg.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment