Read and count the number of the entries of zip file in ASP Classic
I would to know how to read and count the number of entries in zip file in ASP Clas开发者_StackOverflow社区sic
Thank for everybody
Ponomy
- install a zip component on the server.
- In ASP code: set objZipHandler = Server.CreateObject("your.component")
- Follow the documentation of the component on how to count files inside a zip
dim objZipHandler, iFileCount
objZipHandler = Server.CreateObject("your.component")
objZipHandler.load("myZipFile.zip")
iFileCount = objZipHandler.countFiles()
response.write "Nr Of Files inside ZIP: " & iFileCount
objZipHandler.dispose()
set objZipHandler = nothing
精彩评论