In my sample code the destination file is erased if user chooses to overwrite it so COPY FILE command wouldn't have anything to complain about. Another way to suppress that dialog is to SET SAFETY OFF.
>Hi Sergey,
>
>In my previous code, I use copy file and it prompted me to overwrite the file when the file exist. In the your sample code, would the message to overwrite the file come up twice? (1. Messagebox() and Copy File command).
>
>Thanks
>
>P.S. My other alternative is to use win32 api copyfile function if I can not find a solution.
--sb--