开发者

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


  1. install a zip component on the server.
  2. In ASP code: set objZipHandler = Server.CreateObject("your.component")
  3. 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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜