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).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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