help... backup directory... any idea/class?
-
hi, My goal is to create backup for a directory every 5 minutes. But here is the trick, this backup needs to be done during my working with files on this directory. which means that I would probebly have a word document open while the directory is beening backup. so far every move that I've made I recived "cann't access file". Please help... tnx
-
hi, My goal is to create backup for a directory every 5 minutes. But here is the trick, this backup needs to be done during my working with files on this directory. which means that I would probebly have a word document open while the directory is beening backup. so far every move that I've made I recived "cann't access file". Please help... tnx
Correct, you can't copy a locked file. No way around it.
Christian Graus Driven to the arms of OSX by Vista.
-
hi, My goal is to create backup for a directory every 5 minutes. But here is the trick, this backup needs to be done during my working with files on this directory. which means that I would probebly have a word document open while the directory is beening backup. so far every move that I've made I recived "cann't access file". Please help... tnx
yes, you can't access a locked file.
Christian Graus Driven to the arms of OSX by Vista.
-
hi, My goal is to create backup for a directory every 5 minutes. But here is the trick, this backup needs to be done during my working with files on this directory. which means that I would probebly have a word document open while the directory is beening backup. so far every move that I've made I recived "cann't access file". Please help... tnx
You might want to take a look at the Volume shadow copy service (or VSS) Here's some links to get you started. Wikipedia page on VSS[^] MSDN reference[^] CP article about shadow copying in .net[^] (Disclaimer: I've never used it personally, but I think it's what you are looking for.) Good luck.
Simon
-
hi, My goal is to create backup for a directory every 5 minutes. But here is the trick, this backup needs to be done during my working with files on this directory. which means that I would probebly have a word document open while the directory is beening backup. so far every move that I've made I recived "cann't access file". Please help... tnx
Two suggestions which I haven't tried, so aren't guaranteed to work: 1. Using automation (http://www.codeproject.com/KB/COM/word_ole_bm.aspx[^]) you can launch Word to edit your file. Then in the program that launched Word, you can issue a "Save As" command (at regular intervals or on-demand) to save a backup copy of your file, without disturbing the editing session. 2. Word is capable of running macros (http://wordprocessing.about.com/od/workingwithmacro1/l/blmacrointro.htm[^]). You can have a macro to invoke "Save As" to save a backup copy, without disturbing editing.
-
Two suggestions which I haven't tried, so aren't guaranteed to work: 1. Using automation (http://www.codeproject.com/KB/COM/word_ole_bm.aspx[^]) you can launch Word to edit your file. Then in the program that launched Word, you can issue a "Save As" command (at regular intervals or on-demand) to save a backup copy of your file, without disturbing the editing session. 2. Word is capable of running macros (http://wordprocessing.about.com/od/workingwithmacro1/l/blmacrointro.htm[^]). You can have a macro to invoke "Save As" to save a backup copy, without disturbing editing.