Backup .cdb database to SD Memory Card

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I would like to make up a backup of a .cdb database on a SD card everytime a user exits an application. This seems like it shoud be a simple process. I am using the code..

System.IO.File.Copy("\Program Files\Caspian\Caspian.cdb", "\Storage Card", True

and get Err 57 IO Exception. Anybody know what I'm doing wrong or what I need to do? Any help appreciated

Thanks
 
Your target path must be a full path with file name e.g.:-

System.IO.File.Copy("\Program Files\Caspian\Caspian.cdb", "\Storage
Card\Caspian.cdb", True)

Peter
 
Back
Top