I'm still stuggling to get the IP address added to the ODBC setting.

It adds the SQL entry & server name fine which is great just not the Network Address...

I think the code from the previous posts isn't adding the address to C:\Windows\win.ini & C:\Windows\ODBC.ini