>lcSourceFolder = cTxt2 >lcDestinationFolder = cTxt3 > >lcSourceFilter = lcSourceFolder + '\*.*' > >nCount = adir( arrFiles, lcSourceFilter ) >for i = 1 to nCount > sourcefile = lcSourceFolder + '\' + arrFiles( i, 1) > targetfile = lcDestinationFolder + '\' + arrFiles( i , 1) > copy file (sourcefile) to (targetfile) > >endfor >Pathing functions like addbs(), forcepath(), justext() etc were moved from foxtools.fll to FoxPro proper in 2001, when VFP7 was published. Not quite new, eh?
sourcefile = forcepath(arrFiles(i, 1), lcSourceFolder) targetfile = forcepath(arrFiles(i, 1), lcDestinationFolder)