"Ken" <> wrote in message
news:bee70105-7d9c-4183-80fd-...
> Do file contents get read and copied to a new location on disk due to
> a file move opertion "to a subfolder within the same NFTS partition"
> or does it update a pointer in some NTFS table to point that the file
> now resides in a different folder?
> I am hoping that my app will cause negligible IO when it moves file
> from an Unprocessed to a Processed folder after the file gets
> processed.
Not really a security issue, but...
The answer to your question is: it depends.
As I understand it, a move operation, whether scripted, done from a command
prompt, or via drag-and-drop or cut-and-paste from windows explorer will
simply update the source and destination directories, but that the content
of the file remains where it was. In effect, a move between folders on the
same volume is much like a rename in a single folder. But this will ONLY be
the case when the path to the source and destination folders as specified
have a common root.
For example, if you move a file from D:\here\ to D:\there\, the only changes
are to those two folders themselves. But if D:\there\ was shared out as
\\computer\thereshare, and the copy was done from D:\here\ to
\\computer\thereshare\, the entity actually carrying out the copy would not
necessarily be able to do the same, as it would assume two separate volumes.
In that case the move would involve a copy and a delete.
/Al
|