This is a serious question even though it sounds sarcastic: If that's all you need, what is all the other stuff in Ed's example for? I'm sure it all serves a purpose since it wouldn't make any sense for him to throw in a bunch of stuff you don't need. I guess what I'm asking is what does his do that yours doesn't? Which probably isn't the best question for you since you said you hadn't used his. :) But maybe someone else reading the thread has used Ed's example and can chime in?
Thanks,
Michelle
>Michelle,
>
>Only a kind of answer to Q1. Never used SHFileOperation.
>It's straight and simple
>
>
>declare Integer CopyFile in win32api string @, string @, Integer
>local FileFrom, FileTo
>
>FileFrom ='C:\tmp\xxx'
>FileTo = 'c:\tmp\yyy'
>if( empty(CopyFile(@File_From, @File_To, 0)) )
> return FALSE
>endif
>
>you can find the doc at
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/filesio_0x9h.asp