1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Dim fso, ws, AppData, Chemin, MyFile
Set ws = CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
AppData = ws.ExpandEnvironmentStrings("%AppData%")
Chemin = AppData & "\Microsoft\Outlook\Outlook.NK2"
If (fso.FileExists(Chemin)) Then
Set MyFile = fso.GetFile(Chemin)
If (MyFile.datecreated > "#20/07/2010#") Then
Msgbox " Le fichier " & MyFile.name & " va être supprimer !",64,"Fichier à Supprimer"
MyFile.Delete
else
Msgbox "Rien à supprimer"
End If
Else
WScript.Quit
End If |
Partager