|DataDirectory| and Application startup
Hi
I'm working on an application that I use SQL 2005 Express mdf files to store data I use the default connection string that created by connection wizard to connect to the data file
I want to make sure that the mdf file is in it's location before using the tableadapter.update method to fill the data set at application startup
the only problem I had here is the |DataDirectory| that is in the connection string I want to know at run time to which folder it refere
my question here how I can programatically at runtime identify the |DataDirectory| is reffering to which folder so I can get the full path to the place of the data file
Thank you all

