Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Data Sources
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01392915
Message ID:
01392927
Vues:
52
>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--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform