DSNs via VBscripts

  • Thread starter Thread starter Tony
  • Start date Start date
T

Tony

Does anyone know how to load a Data source name for ODBC
via vbscripts? I have been looking and looking and cannot
find it. This is the last step I need to get rid of an
install shield file we do not want to use any more. Thanks

Tony
 
For system DSNs you can use RegWrite method to create the keys/ values.

HKLM\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources

and also the subkey for each DSN
HKLM\SOFTWARE\ODBC\ODBC.INI\

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect


:
| Does anyone know how to load a Data source name for ODBC
| via vbscripts? I have been looking and looking and cannot
| find it. This is the last step I need to get rid of an
| install shield file we do not want to use any more. Thanks
|
| Tony
 
Thanks Dave,

I was looking along those lines, but was unsure that was
the way to do it.

Tony
 
Back
Top