I have a VB 6 routine that deletes all files in a directory, copies blank FoxPro dbf files to the empty directory, fills the files with data, uses the files with a report writer. On a Windows 9x system things work fine every time. On a Windows NT/2000 system I can only fill the files with data once. The second time I attempt to fill the empty data files, I get an error message stating that the field types are incompatible. Any ideas what is going on? Is there a special way I need to delete files in an NTFS Operating System?
Private Sub PrintMyReport()
Kill app.path & "\Reports\*.*"
Filecopy app.path & "\myfile.dbf", app.path & "\Reports\Myfile.dbf"
< fill empty dbf files with data >
< run the report writer >