I am trying to Copy File from path to another using the following code:
File.Copy(oldPath, newPath);.
newPath represent Path and filename like C:\txt.txt
oldPath represent path and filename like d:\d.txt
I get the following Exception:
C:\txt.txt Used From another Process
Why this issue showing?
Often the reason because one of the programs from Windows is using the file you are trying to copy — in my case the file was used by Visual Studio cs was in debug file …