ERROR32 Copying File, File is in use

0

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?

file
batch-file
cmd
config
system32
asked on Stack Overflow Aug 16, 2017 by Wojjy 72 • edited Aug 16, 2017 by Wojjy 72

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0