Michelle,
I'd bet a nickel that the code with the alltrim() won't choke *grin*.
I don't think it matters, but what OS are you on? And if it does choke (with the alltrim()), I'm still curious about the contents of lcFromPath & lcToPath at that point.
That is, if you don't mind trying it :)
>LOL! That's the code I started with. :) Well, minus the alltrim part since there aren't any trailing spaces. But the COPY FILE line is exactly my original code. That's what chokes and what prompted me to ask for help. :)
>
>Thanks,
>
>Michelle
>
>>Michelle,
>>
>>Ahhh...these are memo fields. The following should work, and should be faster, especially if you are copying a whole bunch of files. EXECSCRIPT() has to compile the line each time it executes.
>>
>>
>>local lcFromPath, lcToPath
>>
>>lcFromPath = alltrim(mFromPath)
>>lcToPath = alltrim(mToPath)
>>copy file (lcFromPath) to (lcToPath)
>>
>>
Steve Gibson