Remove files from .zip file with Powershell

后端 未结 2 529
走了就别回头了
走了就别回头了 2020-12-18 11:07

I am going to write a Powershell script to remove files from a .zip file. In my .zip file, I have test.txt (latest) test1.txt (older) test2.txt .... testN.txt (oldest)

2条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-18 11:38

    Use 7-Zip, a free Zip tool. A Technet sample illustrates how to create a zip archive with 7-Zip in Powershell.

    Learn the proper commands to get a listing of your zip's contents and use the d command to delete files from within the archive.

提交回复
热议问题