Re: FileCopy overwrites the existing file



gtea <gtea@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:

I have a question about the use CopyFile() function from the Windows API. if
the Boolean flag sets to false and new file already exists, the function
overwrite the existing file and succeeds. In this case, does the contents of
copied-to file (before overwriting) still exist on the hard driver somewhere
and can be retrived using some type of trieval software?

If I were writing CopyFile, I'd open the existing file for writing. That
means I'm overwriting the same sectors with new data, and the old data
disappears for good.
--
Tim Roberts, timr@xxxxxxxxx
Providenza & Boekelheide, Inc.
.