I'm using powershell to copy file to a remote computer witht he following command :
Copy-Item -Path [MyPath]\* -Destination \\[server]\[MyPath] -force
It's working great, but sometime I'm receiving the following error message: "The process cannot access the file [...] because it is being used by another process.".
Is it possible to force the file to be copy even if it's in use?