Apr 1, 2010 at 5:35 PM
Edited Apr 1, 2010 at 5:36 PM
I am using DotNetZip with a classic ASP application and I got this error when I generated the same name zip file more than once:
mscorlib error '800700b7'
Cannot create a file when that file already exists
even though the Save method documentation says
If necessary, this method will delete a pre-existing file before the rename.
Here's my code:
Set zip = Server.CreateObject("Ionic.Zip.ZipFile")
strFileName = Dir & "\FileName.zip"
zip.Name = strFileName
As you can see, I am adding a folder to the ZIP and saving it. I can delete the existing file before I save, but the documentation says it will do it for me.