benchetrit
17th May 2004 14:46 UTC
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 ?
scully13
18th May 2004 02:44 UTC
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.
Davion
18th May 2004 09:06 UTC
you also can copy each file single
benchetrit
19th May 2004 09:28 UTC
Thanks for your answers. I will use ExecWait or nsExec with xcopy.
Thierry