What I am looking for is a simple vb script that can run and return a list of all the DSN's or ODBC connections on the local machine.
Asked
Active
Viewed 111 times
0
-
Are you interested in a VB.NET solution, or did you select that tag by mistake? VB.NET is not the same as VBScript nor VBA. – Steven Doggart Feb 14 '14 at 16:03
-
i'm sorry i meant to choose vbscript. – BSanders Feb 14 '14 at 16:06
1 Answers
0
This is all you need to do:
for /f %%a in ('reg query HKLM\Software\ODBC\ODBC.INI') do echo %%~na
pause

Matt Williamson
- 6,947
- 1
- 23
- 36
-
running that in a batch file pops up a cmd window that instantly closes. any ideas? – BSanders Feb 14 '14 at 16:17
-