code to take backup of database file

Code to take backup of database file in c#
       

try
            {
               
             
                File.Copy(txtsrc.Text, Path.Combine(txtdestination.Text, Path.GetFileName(txtsrc.Text
                    )), true);
                MessageBox.Show("Databse Copied to target detination");
            }
            catch(Exception ee)
            {
                MessageBox.Show(ee+"");
            }










No comments:

Post a Comment