ODBC 连接信息从 Windows XP 导出到 Windows 7 的脚本?
寻找从 WinXP 盒子导出到 Windows 7 盒子的 ODBC 连接信息脚本。
Looking for an ODBC connection information script that exports from a WinXP box to a Windows 7 box.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以从注册表导出 ODBC 设置并将其恢复到其他计算机上。不知道是否有脚本可以做到这一点,但应该很容易。请注意,因为越来越多的 Windows 计算机是 64 位版本,并且 32 位和 64 位应用程序的注册表位置有所不同。看一下:https://serverfault .com/questions/239002/registry-for-odbcad32-on-window-server-2003-64-bit/240112#240112
You can export ODBC setting from registry and restore it on other machine. Don't know if there is script that can do it, but it should be easy. Be aware, because more and more Windows machines are 64 bit versions and there registry location differs for 32 and 64 bit applications. Have a look at: https://serverfault.com/questions/239002/registry-for-odbcad32-on-window-server-2003-64-bit/240112#240112
注册表信息可能指向 Windows 7 x64 上不存在于同一位置的驱动程序 dll。例如,在 XP 上,驱动器可能位于“C:\Program Files\”,而在 Win7 x64 中,它位于“C:\Program Files (x86)”下 - 只是想向那些偶然发现这一点的人指出这一点。
vbscript 我放在一起:
然后,更新脚本以合并到 32 位注册表中:
It's possible that the registry information may point to a driver dll that does not exist in the same place on Windows 7 x64. For instance, on XP the drive may be located in "C:\Program Files\" while in Win7 x64 it's located under "C:\Program Files (x86)" - just wanted to point that to those that stumble upon this.
vbscript I put together:
And then, to update the script to merge into the 32-bit registry: