Skip to content

Instantly share code, notes, and snippets.

@gioxx
Last active February 23, 2016 14:32
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 gioxx/e8df26834350c599a0f1 to your computer and use it in GitHub Desktop.
Save gioxx/e8df26834350c599a0f1 to your computer and use it in GitHub Desktop.
Esporto le chiavi di registro x86 / x64 contenenti le sorgenti ODBC personali e di sistema (test: Windows 7 Pro Sp1 x64). %TB% è una cartella settata in una variabile precedentemente richiesta dal file batch (questo è un codice estratto).
if defined ProgramFiles(x86) (
echo Esporto origini dati x86 e x64 ...
reg export HKLM\SOFTWARE\ODBC\ODBC.INI "%TB%\ODBC_x86.reg"
reg export HKLM\SOFTWARE\Wow6432Node\ODBC\ODBC.INI "%TB%\ODBC_x64.reg"
reg export HKCU\SOFTWARE\ODBC\ODBC.INI "%TB%\ODBC_x86_user.reg"
) else (
echo Esporto origini dati x86 ...
reg export HKLM\SOFTWARE\ODBC\ODBC.INI "%TB%\ODBC_x86.reg"
reg export HKCU\SOFTWARE\ODBC\ODBC.INI "%TB%\ODBC_x86_user.reg"
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment