I need to specify the file path of an access db as a command line argument and pass it to my C# program, which will open and perform operation on it. 

In the Command Prompt I type `F:\\count` which I should able to access using args[0], but I get `Invalid value for key 'data source'` exception. 

When I put the same path in the code as `string path = "F:\\count"` then it works. 

Please tell me what I'm doing wrong! I'm lost.

Here is my code:

```
namespace CountProjectPages
{
   public class CountProjectPages
   {
   private static OleDbConnection myConnection;

    static void Main(string[] args)
    {
        try
        {
            string path = args[0];
            AppDomain.CurrentDomain.SetData("DataDirectory",path);

            myConnection = new OleDbConnection("Provider=Microsoft.JET.OLEDB.4.0;Data Source=|DataDirectory|\\test.mdb;Jet OLEDB:Database Password=aaa");
                string myScalarQuery = "SELECT COUNT (Content.Page) from Content";
                OleDbCommand myCommand = new OleDbCommand(myScalarQuery, myConnection);
                myConnection.Open();
                int total = (Int32)myCommand.ExecuteScalar();
                Console.WriteLine(total); 

                Console.WriteLine("DataSource: {0}",myConnection.DataSource);

        }
        catch (Exception ex)
        {
            Console.WriteLine("Ex: " + ex);
        }
        finally
        {
            myConnection.Close();
        } 

    }

   }
}

```