CopyFile improovement