I must convert a folder into a zip (or any other compressed format) file in classic ASP. Is there any way to do this in classic ASP or VBScript natively without using any external program or library (i.e. do it in completely inside the .asp file)?
For example, compress C:\RandomFolder\
into C:\NewZipFile.zip
.
In code, it should be something like:
function CompressFolder (folderLocation, zipLocation)
' code that compresses a folder using native VBScript functions and objects.
end function
CompressFolder("C:\RandomFolder\", "C:NewZipFile.zip")
(I am using IIS 10.0 with full permissions for IUSR and unmanaged classic ASP code as my webserver. I do not have and cannot download additional zipping utilities.)
P.S. This may sound like a duplicate of How to convert folder to zip. file in asp classic. However, the only answer does not explain zipping with classic ASP (instead proceeds to use ASP.NET) and the link provided by Andrew has expired. In addition, user1649028's code resulted in an error. The post was created 8 years ago, and it seems that there would be no further activity with the post.