Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Createobject with filesystemobject
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00745209
Message ID:
00745214
Views:
23
>I am useing the following code to delete temp folders.
>ox = createobject('scripting.filesystemobject')
>ox.deletefolder(lcpath + '\*,.T.)
>
>the problem is I only want to delete folders from yesterday
>and before, not todays temp folders, Can you help?
>Thanks,

Doug,

If you first do
oFolder = ox.GetFolder(lcpath)
You can examine the DateLastModified or DateCreated properties to make this determination.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform