Click here to Skip to main content
15,890,438 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: (untagged)
i had done all the codings but i dont no how to make backup of data stored in d:\ drive to other drive or copy of it in any where .......
help me out with some coding
Posted

If your using a access database you can just copy the database to another location.

See the system.io.file namespace

(look at the copy method)
 
Share this answer
 
Use System .IO.File.Copy( @"D:\dbsample.mdf",@"C:\dbsample.mdf",true );
 
Share this answer
 

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