I just have written the program in "C", which does the same. It behaves almost the way you described.
Tthe copy command gives such diagnostic: The process cannot access the file because another process has locked a portion of the file. 0 file(s) copied. BUT THE FILE IS ACTUALLY OVERWRITTEN.. I'm posting this question on MS newsgroup microsoft.public.win32.programmer.kernel -- http://mail.python.org/mailman/listinfo/python-list