You can use registry class that comes with VFP
DIMENSION laDsnList[1]
oReg = NEWOBJECT('odbcreg', HOME()+"FFC\registry.vcx")
= oReg.Getodbcdrvrs(@laDsnList, .T.)
DISPLAY MEMORY LIKE laDsnList
Check also
ODBC DSN Class Download #
9749>
>
>I want to list the Data Source Names on a PC. I want to be able to set up the connections on a another PC. Whats the easiest way to get a list.
>
>
--sb--