I have been using the following code happily for years. (This code was taken from a post that strongm provided)
Has anyone else had a problem with running this code on Windows 7?
Thanks.
Swi
Code:
CreateEmptyZip OutputFolder & "Backup-" & Format(Date, "YYYYMMDD") & ".zip"
With CreateObject("Shell.Application")
.NameSpace(OutputFolder & "Backup-" & Format(Date, "YYYYMMDD") & ".zip").CopyHere .NameSpace(InputFolder).Items
End With
Public Sub CreateEmptyZip(sPath)
Dim strZIPHeader As String
strZIPHeader = Chr$(80) & Chr$(75) & Chr$(5) & Chr$(6) & String(18, 0)
With CreateObject("Scripting.FileSystemObject")
.CreateTextFile(sPath).Write strZIPHeader
End With
End Sub
Has anyone else had a problem with running this code on Windows 7?
Thanks.
Swi