>>>Ok, glad to help. BTW, I forgot to add to my previous response - just a SWAG :)
>>
>>Oh, no, not a SWAG - this is not the first time you recommend the API over a VFP's internal command (which is probably a wrapper around an API, though not necessarily the same one). Can you possibly remember the case when the former would work while the latter wouldn't? I think I remember you mentioned something on that.
>
>I meant my original reply that somehow turned into the solution. I was just giving the first idea that came to my head - just to test.
>
>As for using CopyFile instead of COPY FILE - CopyFile preserves the file name casing that's why I like it more than COPY FILE. I'm not sure if there are other circumstances where one would work and another would not.
File case preservation is reason enough for me.
-----
nb. for language purgists: I have two file cases, one for metal files and one for wood files; I keep them in separate file cabinets, which are a bit lower than usual, because I filed off their legs and filed the stumps under "various". File name casing is, though, a completely different matter. I use empoverished uranium for the casings, they last and shine forever.