Ed - I am using VFP 7 SP1. Also, Nadya has suggested hardcoding the path, which I did. It worked. I also had to change the name of the file i.e., from Process*.dat to Process*.* and it copied them properly. The only problem is that I need them as sdf files and not as the regular textfiles, which is why the code could not locate the files to copy in teh first instance. should I add "type sdf" somewhere in the code? Thanks
>
>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\"
>#DEFINE SOURCEFILEMASK = 'PROCESS*.DAT'
>LOCAL cOldPath, nFiles, aFiles[1,5], cConCatString, i
>cOldPath = FULLPATH(CURDIR())
>CD (SOURCEFILEPATH)
>nFiles = ADIR(aBWFiles,SOURCEFILEMASK)
>cConCatString = ''
>CD (cOldPath)
>>
- Ravi
True greatness consists in being great in little things.
- Charles Simmons