How to read the contents of a .zip file with VBScript without actually extracting the files?

前端 未结 4 1857
离开以前
离开以前 2021-01-18 07:36

I have a .zip file that starts with a parent directory. I need to read that dir from the file then search my HD to see if that dir name already exists. If it exists, I then

4条回答
  •  梦毁少年i
    2021-01-18 08:20

    Assuming that you can use an external application, try downloading 7Zip and then have your script execute it with the -l switch. This should give you some output that you should be able to parse in some way.

    Sample from the help file: 7z l archive.zip

提交回复
热议问题