*** * * BorderoPath(, ) * * function copyeleList copies the files from 1 directory to another * * txtFileName * the name of the text file * * newdir * the path where to put the file * Return: * * * FUNCTION copyeleList PARAMETER tcFileName, tcNewdir, tlMacro LOCAL lcTextFile, lnElements, lcFiletoCopy, lcFilePath, lnBCopy lnBCopy = 0 lcTextFile = FILETOSTR(tcFileName) lnElements = ALINES(aFileList, lcTextFile, .T.) FOR i = 1 TO lnElements lcFiletoCopy = FULLPATH(ADDBS(aFileList[i])) lcNewdir = lcFiletoCopy + tcNewdir IF FILE(lcFiletoCopy) *if file does exists COPY FILE (lcFiletoCopy) TO (newdir2) lnBCopy = lnBCopy + 1 ELSE *if file doesn't exists Use GetMess IF !tlMacro ENDIF ENDIF ENDFOR RETURN lnBCopy