#DEFINE HKEY_LOCAL_MACHINE 2147483650 sysVer=Iif([syswow64]$Lower(GetWinSysFolder(41)),[\Wow6432Node],[]) If Empty(regread([Oracle Instant Client Driver],[SOFTWARE]+sysVer+[\ODBC\ODBCINST.INI\ODBC Drivers],HKEY_LOCAL_MACHINE)) &&没有安装驱动 regWrite([Oracle Instant Client Driver],[Installed],[SOFTWARE]+sysVer+[\ODBC\ODBCINST.INI\ODBC Drivers],HKEY_LOCAL_MACHINE) Endif If Lower(regread([Driver],[SOFTWARE]+sysVer+[\ODBC\ODBCINST.INI\Oracle Instant Client Driver],HKEY_LOCAL_MACHINE))#Lower(_path+[sqora32.dll]) &&Driver路径不对,或没有注册 regWrite([Driver],Lower(_path+[sqora32.dll]),[SOFTWARE]+sysVer+[\ODBC\ODBCINST.INI\Oracle Instant Client Driver],HKEY_LOCAL_MACHINE) Endif regWrite([NLS_LANG],[SIMPLIFIED CHINESE_CHINA.ZHS16GBK],[SYSTEM\CurrentControlSet\Control\Session Manager\Environment],HKEY_LOCAL_MACHINE) &&Oracle中文字符集
[此贴子已经被作者于2023-7-14 12:17编辑过]