Thanks all of you for your help first.
Nadya, I tried your suggestion:
copy file temp.txt to (m.lcFileName)
it works well. Then I tried to skip the "m.":
copy file temp.txt to (lcFileName)
it works too. Can you explain to me what does the "m." means? I tried to search it in HELP but failed to find it.
>>You could try copy file temp.txt to &filename
>
>You don't need to use macro.
>
>lcFileName='myfile.txt'
>copy file temp.txt to (m.lcFileName)
Power Wong
Every problem will have a solution, the only problem is that can you find it out.