0

In powershell I am unable to copy files using BITS Transfer that are in use by other processes (a service in my case).

Start-BitsTransfer -Source "E:/path1/dir1/file1.txt" -Destination

produces

start-bitstransfer : The process cannot access the file because it is being used by another process.

However, Copy-Item has no such issue. Unfortunately I can't use Copy-Item because it has no option to go into low priority / background mode and it may therefore put too much strain on the servers that I'm downloading from.

0

You could try using start /low xcopy

https://searchenterprisedesktop.techtarget.com/answer/Copying-Windows-Explorer-files-without-slowing-down-a-system

  • 1
    Hi Dylan - I have just started reading about this command - do you know if the priority will be 'transferred' over to the remote hosts that I am downloading the files from? Furthermore - do you now if the same also happens with the /J switch (unbuffered I/O)? – Lost Crotchet Dec 18 '18 at 16:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.