Re: FileCopy overwrites the existing file
- From: Tim Roberts <timr@xxxxxxxxx>
- Date: Mon, 04 Dec 2006 22:28:55 -0800
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.
.
- Follow-Ups:
- Re: FileCopy overwrites the existing file
- From: anton bassov
- Re: FileCopy overwrites the existing file
- Prev by Date: Any special compiler needed for Dual-core?
- Next by Date: RE: How do I restrict access from starting/stopping services?
- Previous by thread: Re: FileCopy overwrites the existing file
- Next by thread: Re: FileCopy overwrites the existing file
- Index(es):