Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Display date of last file change
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01440303
Message ID:
01440400
Vues:
47
See <B>Re: Sorting files by date and time</B> Message #1422398
Check also Message ID: 909954. It shows how to put ADIR() create array into a cursor. After that you can sort it any way you want.

>thanks but you suggested gives information on a specific file.
>
>i am trying to find a non-specified program file in a directory that shows the latest change
>the (number) sort i have been experimenting with asort(ladir,4) give the following
>1= alpha
>2= size
>3 = earliest date
>4 = earliest time
>
> i cannot seem to sort in way that would dispay latest file first.
>
>fso = CREATEOBJECT("Scripting.FileSystemObject")
>lnNum =adir(ladir,'c:\db\prg\menu\*.prg')
>asort(ladir,4)
>? ladir
>
>k
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform