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.
User contributions licensed under CC BY-SA 3.0