public void Checkmessages()
        {
            try
            {
                Utils.Log("Message processing started:");

                //foreach (var file in new DirectoryInfo(new Settings().ProcessDirectory).GetFiles())
                //{
                //    string resposne = new ReadSMSFile().BeginMsgExecution(file, file.Name);


                //}

                //string resposne = new PrvMsgBrdAsncEvnt().BeginMsgExecution(new Settings().in_dir, new Settings().fail_dir, new Settings().success_dir, new SQLServerDBInterfac((new Settings().dbconstr)));

                string resposne = new ReadSMSFile().BeginMsgExecution();

                Utils.Log("All processed sucessfully");
            }
            catch (Exception s)
            {
                Utils.Log("Message process failed because:" + s.Message);
            }
        }
 static void Main(string[] args)
 {
     ReadSMSFile exe = new ReadSMSFile();
 }