2
Answers

Execute External Program

Photo of Administrator

Administrator

22y
2.4k
1
In VB.NET, we can use Shell() function to execute an external program from the application. How to do this in C#? Anybody can help? Thanks!

Answers (2)

0
Photo of kovan
NA 636 0 21y
have a preference section in your application where the user can select the database file themselves (network or local) just use the OpenFileDialog to give the user browsing ability to locat the database then save this path in a xml file or registry or INI (prefered way is a .config or xml file..
0
Photo of Adam Erstelle
NA 343 0 21y
I am using the ODBC .Net provider for accessing the database. I am in a similar situation, and have generated my Connection string based on a value that I set somewhere (can be hard coded or in a .ini file, or in the registry) With ODBC, you can set the DSN name to be almost anywhere. I am limited because I use an Access Database, so I have to have a network drive mapped in order for the database to be available. Hope this helps Wiggum