Re: FileCopy overwrites the existing file
- From: "anton bassov" <soviet_bloke@xxxxxxxxxxx>
- Date: 4 Dec 2006 22:57:39 -0800
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.
Well, I think you are much too optimistic....
In order to make sure that it all works the above way, you would have
to be a file system writer - as CopyFile() writer you would have no
control over these things whatsoever...
Anton Bassov
Tim Roberts wrote:
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: Grzegorz Wróbel
- Re: FileCopy overwrites the existing file
- References:
- Re: FileCopy overwrites the existing file
- From: Tim Roberts
- Re: FileCopy overwrites the existing file
- Prev by Date: RE: How do I restrict access from starting/stopping services?
- 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):
Relevant Pages
|