>Change
>
>>>copy file m.txt to ('c:\Vaniermu\' + justfname(m.fln))
>
>into
>
>>>copy file m.txt to ('c:\Vaniermu\' + m.fln)
>
>ie, take out justfname() which throws away the extension you just added
No, JUSTFNAME returns the file name with extension.
I think Viv got it, I checked Help on PUTFILE, but didn't bother to verify what should I use for the second parameter (can I just omit it or not). It was kind of late last night.
If it's not broken, fix it until it is.
My Blog