Hi Alan --
Look into processing your files using the ADIR() function, which throws all matching filenames into an array and is much more applicable to multiple file processing.
>I am using the command sys(2000,'
/*.*',1) in a do loop to process each of the files in a specific directory - in test mode I merely display the names of the files on the screen. The first time I run this code, it works fine. However, if I re-run it no file names appear on the screen, even though the files are still resident in the correct directory.
>
>The actual code is:
>
>do while sys(2000,'p:\apps\outcomes\*.*',1)+' ' <> ' '
> mfilename = sys(2000,'p:\apps\outcomes\*.*)
> ? mfilename
> wait""
>enddo
>
>All the filenames which are in the directory are like "outcMMDD" where MM and DD are replaced by the month and day the file was created. There is a dbf and an fpt file for each name.
>
>Any help or suggestions would be appreciated.
>
>Thanks,
>
>Alan
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05