Archive: I want CopyFiles do not stop on an error


I want CopyFiles do not stop on an error
I use CopyFiles from one directory and subdirectories where some file are open and can not be copied. I want that CopyFiles will be able to continue with other files and do not stop after the first problem. Is it possible ?


That's just the way Windows copies files. You could try using FindFirst, FindNext and FindClose in your script and each time you find a file use CopyFiles on that one file. Check for the error if you need to and then move on to the next file. This might be problematic though since it sounds like you need to traverse through folders too. Also, a problem if you want to show progress for the entire copy.


you also can copy each file single


Thanks for your answers. I will use ExecWait or nsExec with xcopy.

Thierry