Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Retrieving file characteristics
Message
From
17/09/2004 08:58:44
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, United States
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00942944
Message ID:
00943297
Views:
14
This message has been marked as the solution to the initial question of the thread.
If anyone would like the answer to this, here it is in VB.Net,
        Dim files() As String = Directory.GetFiles("C:\temp\", "*.*")
        Dim i As Int32
        For i = 0 To files.GetUpperBound(0)
            If System.IO.Directory.GetCreationTime(files(i)) > DateTime.Now.AddDays(-14) Then
                File.Delete(files(i))
            End If
        Next i
Very fitting: http://xkcd.com/386/
Previous
Reply
Map
View

Click here to load this message in the networking platform