How to avoid copying same files with Robocopy in multi-threads(not robocopy's /MT option)?

0

When using multi-threads to do robocopy, not robocopy's /MT option. If in different threads are going to copy files with same names into same folder, one thread will print below errors:

2018/09/06 23:25:06 ERROR 32 (0x00000020) Accessing Destination Directory C:\Windows\symbols\dll\
The process cannot access the file because it is being used by another process.

Is there a way to avoid that kind of error in a simple way, if the thread finds the file it's going to copy is under copying. Thanks.

robocopy
asked on Stack Overflow Sep 7, 2018 by james

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0