Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Display date of last file change
Message
 
 
To
23/12/2009 14:19:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01440303
Message ID:
01440400
Views:
46
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform