Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
File System Object
Message
From
12/06/2014 12:40:01
 
 
To
11/06/2014 19:40:20
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01601736
Message ID:
01601789
Views:
44
Christian,

This is what I was looking for, and I finally figured it out on my own.

Thanks!

James

>
>loFSO = Createobject("Scripting.Filesystemobject")
>loFolder = loFSO.GetFolder("C:\Files")
>FOR EACH loFile IN loFolder.Files
>	?loFile.DateCreated
>	?loFile.Name
>ENDFOR
>
>
>>We have a program that uses ADIR() to get a list of PDFs that have a modification date of 7 prior to the current date. If they are older than 7 days they are deleted. The problem is that the number of files in the directory exceeds the limit of ADIR().
>>
>>I have been searching for an elegant solution, but I have not found it yet. Can anyone help out?
>>
>>Regards,
>>
>>James
Previous
Reply
Map
View

Click here to load this message in the networking platform