开发者

Read and count the number of the entries of zip file in ASP Classic

开发者 https://www.devze.com 2023-03-21 08:20 出处:网络
I would to know how to read and count the number of entries in zip file in ASP Clas开发者_StackOverflow社区sic

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

精彩评论

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