views:

11

answers:

0

Hi,

I need to copy / move file and to be able deciding whether to override the target file (if exist), using IFileOperation interface, and without displaying the windows 7 confirmation dialog.

I can see the IFileOperationProgressSink.PreCopyItem parameter is a dwFlags enum. But this is an input parameter – so it can not influence the operation. I have managed to do that by supplying the FOF_NOCONFIRMATION enum flag to the IFIleOperation.SetOperationFlags – but it seems to me that it must be a way to do that explicitly as maybe there is a need to cancel the operation is the target file exist – but still not display any dialog. Any help?

Tx

Oren