>I am not getting the date of the file. Have I set it up incorrectly?
>It correctly lists the files but not the date
>tnx for any suggestions
>k
>
>fso = CREATEOBJECT("Scripting.FileSystemObject")
>lnNum =adir(ladir,'c:\Backup\FP*','D')
>asort(ladir,3)
>FOR nCount = 1 TO lnNum
> ? LADIR(nCount,1)
> ? FDATE(LADIR(nCount,1))
>endfor
>
Probably, "C:\Backup" is not being searched by VFP. Can you try and check if this change solves the issue?
? FDATE("C:\Backup\" + LADIR(nCount,1))
----------------------------------
António Tavares Lopes