>fso = CREATEOBJECT("Scripting.FileSystemObject") >lnNum =adir(ladir,'c:\Backup\FP*','D') >asort(ladir,3) >FOR nCount = 1 TO lnNum && Loop for number of databases > ? LADIR(nCount,1) > ? FDATE(LADIR(nCount,1)) >endfor >
? fdate(forcepath(laDir[nCount, 1], "c:\backup"))But then it's unnecessary, as laDir[nCount, 3] contains the date, and laDir[nCount, 4] the time of the file.
loDir=fso.getFolder("c:\backup") for each loFile in loDir.files ? oFile.name, oFile.datecreated endforIf you track this in the debugger, you'll see there are many other properties of oFile that you can use, and things you can do with it. Perhaps debugger won't show all of them, but then intellisense will. Just type "oFile." in the command window and you'll see.