如何列出Vb.Net中安装的ODBC驱动程序?

时间:2016-08-20 14:49:02

标签: vb.net list odbc drivers

如何在Vb.Net中列出驱动程序ODBC? (Visual Studio 2015)

    Dim _Software As RegistryKey
    Dim _ODBC As RegistryKey
    _Software = Registry.LocalMachine
    _ODBC = _Software.OpenSubKey("SOFTWARE\ODBC\ODBCINST.INI")
    For Each XDrives In _ODBC.GetValueNames()
        MsgBox(XDrives)
    Next

0 个答案:

没有答案