I’m trying to move (File.Move) locked .dll file to perform application update. File.Move method was executed without exceptions. But file was not moved. I mean after executing File.Move method I have two copies of the same file: in destination folder and in source folder. Here is the code 🙂
File.Move(fileName, newFileName);
Could someone explain the reason of this?
File.Move across volumes performs two operations in sequence:
It seems as though the first succeeds and the second silently fails. Results as expected.
Note from here: http://msdn.microsoft.com/en-us/library/system.io.file.move.aspx