Loading |
VBScript |
JavaScript |
Powershell |
Search Options: Delete a Backup File Created on the Previous DayContent of Delete a Backup File Created on the Previous Day.vbsMD5 Hash: 325F49BF30CDC72DB206593E1EF0E340 |
||
dtmYesterday = Date - 1
strYear = Year(dtmYesterday) strMonth = Month(dtmYesterday) If Len(strMonth) = 1 Then strMonth = "0" & strMonth End If strDay = Day(dtmYesterday) If Len(strDay) = 1 Then strDay = "0" & strDay End If strYesterday = strYear & strMonth & strDay strFileName = "C:\Backups\backup_" & strYesterday & ".bak" Set objFSO = CreateObject("Scripting.FileSystemObject") objFSO.DeleteFile(strFileName) | ||
© 2008 - 2013 Boris Toll :: Scripts available: 6.481 :: :: scriptbox.toll.at :: :: powered by www.toll.at :: |