Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Data Sources
Message
 
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01392915
Message ID:
01392927
Views:
51
>Someone knows the commands to start the configuration of a new data sources in Windows from vfp ? I don't need the API commands to ceate or modify a data sources but only the command to start the configuration. Once started the user insert all data for setup data source. (ODBC, OLEDB,etc)

I'm not sure why would you want to do that but here it goes
oShell = CREATEOBJ('Shell.Application')

* ODBC
oShell.ShellExecute("odbcad32.exe")

* ADO
lcUdlFile = FULLPATH("Temp.udl")
= STRTOFILE("", lcUdlFile)
oShell.ShellExecute(lcUdlFile)
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform