Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Retrieving file characteristics
Message
De
17/09/2004 08:58:44
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00942944
Message ID:
00943297
Vues:
13
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/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform