Click here to Skip to main content
15,911,786 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi

i want to take backup of access database file that means when we select on button then complete demo.mdb file is copied into other location so what is code for that ?
Posted
Comments
[no name] 27-Aug-13 7:38am    
File.Copy(sourcefile, destinationfile)

System.IO.File.Copy("old file path", "new file path", true);//true to override destination file
 
Share this answer
 
Comments
pravin from aurangabad 27-Aug-13 7:49am    
thanx
[no name] 27-Aug-13 8:23am    
U r welcome..:)
 
Share this answer
 
Comments
pravin from aurangabad 27-Aug-13 7:49am    
thanx

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900