Creating a zipped/compressed folder in Windows using Powershell or the command line

后端 未结 6 1394
野性不改
野性不改 2020-12-13 04:56

I am creating a nightly database schema file and would like to put all the files created each night, one for each database, into a folder and compress that folder. I have a

6条回答
  •  感动是毒
    2020-12-13 05:49

    Using PowerShell Version 3.0:

    Copy-ToZip -File ".\blah" -ZipFile ".\blah.zip" -Force
    

    Hope this helps.

提交回复
热议问题