In my batch file, one of the things I need to do is to copy config. The code I use is:
Robocopy C:\Windows\System32\config D:\hi
I get this error when I run the command:
2017/08/16 14:36:50 ERROR 32 (0x00000020) Copying File C:\Windows\System32\config\BBI The process cannot access the file because it is being used by another process.
Is there a way to copy the files while they are not in use? Is there is any other way to copy them?
User contributions licensed under CC BY-SA 3.0