#DEFINE SOURCEPATHNAME = "c:\BW\" && this is the BW Directory with absolute path>
nFiles = ADIR(aBWFiles,SOURCEPATHNAME + SOURCEFILEMASK)
Try this instead. It isn't needed in VFP7, but perhaps some earlier version won't allow you to specify a path:<pre>#DEFINE SOURCEPATHNAME = "c:\BW\" && this is the BW Directory with absolute path#DEFINE SOURCEFILEMASK = 'PROCESS*.DAT'
#DEFINE SOURCEFILEMASK = 'PROCESS*.DAT' >>>>cConCatString = '' >>>>nFiles = ADIR(aBWFiles,SOURCEPATHNAME + SOURCEFILEMASK) >>>>FOR i = 1 TO nFiles && this avoids all copies if no files were found >>>> cConCatString = cConCatString + FILETOSTR(SOURCEPATHNAME + aBWFiles[i,1]) >>>>ENDFOR >>>>=STRTOFILE(cConCatString,'MyConCatFile.DAT',.F.) && .T. would append to any existing MyConCatFile.DAT found >>>>RELEASE cConCatString && releases the large string memory allocation