<%
' use the FileSystemObject to gather all the files in a folder and
' zip them with MkArchive.
dim objfso, fldr, file, strarc
set objfso = server.createobject("scripting.filesystemobject")
' the folder containing everything to zip.
set fldr = objfso.getfolder( server.mappath( "/aspemporium/codelib/" ) )
' seperate each file in the folder with the special delimiter: "*"
for each file in fldr.files
strarc = strarc & file.path & "*"
next
' remove the last "*"
strarc = left( strarc, len( strarc ) - 1 )
set fldr = nothing
set objfso = nothing
' call MyArchive to zip the above chosen files into
' "myArchive.zip" on the server's root.
response.write MkArchive( server.mappath("/myArchive.zip"), strarc )
%>