Regarding Backup & Restore

Hi,

I am developing smart device applications using CF1.0 on VS 2003. I need your help. First look at the following directory structure:

My Documents (folder)
- Temp (folder)
- AA.txt (file)
- CCC (folder)
- Documents (folder)
- doc.txt
- Pictures (folder)
- Hai.txt (file)

The question is "How to backup the above structure as a single file like my.bkp, and how to restore the backup file my.bkp programmatically ". Please send your suggestion or codes.

Thanx

M. GANESAN




Answer this question

Regarding Backup & Restore

  • Pankaj11

    Hi

    You could use a ZIP compression library to create a archive file containig the entire directory structure.
    There are a set of libraries available (for instance the free SharpZipLib)

    Michael



  • Regarding Backup & Restore