Craig Johnston
Craig Johnston

Reputation: 7607

Path of .MDB file?

I have an .MDB database file located on a network share.

I have an application installed on several machines on the network. This application accesses the .MDB database. What is the best way to store the path of the .MDB file? In the registry perhaps, or in an .INI file, or an environment variable?

Upvotes: 0

Views: 520

Answers (2)

Cody Gray
Cody Gray

Reputation: 245001

I would strongly discourage the use of either the Registry or an environment variable.

This is the kind of simple configuration information that INI files were designed to provide. Unless you're writing a .NET application, in which case Application Settings are probably a better bet.

Upvotes: 2

Tobias Schittkowski
Tobias Schittkowski

Reputation: 2251

  • Registry: Possible, but not so easy to edit/deploy
  • INI: I would prefer this. Easy to edit, easy to deploy
  • Environment Variable: Too complicated, above methods are better

Another way: as a command line parameter of your application.

Upvotes: 4

Related Questions