I agree with Sergey. It preserved the attributes for me as well.
Maybe you're using a handle on the command that is causing it to change.
Try it with no handles. What happens?
>Hi Sergey,
>
>>Are you sure that it's XCOPY that changes destination file timestamps?
>
>Yes - just done it again to prove that I wasn't hallucinating.
>
>Regards,
>Alan
___________________________
Kenneth Wonderley
http://www.wonderley.com...the fruit of the Spirit is love, joy, peace, patience, kindness, goodness, faithfulness, gentleness and self-control.
Galatians 5:22 & 23