ใช้ PowerShell เพื่อสร้างไฟล์ ZIP ที่ถูกบีบอัด
ด้วย PowerShell 5.0 มีการแนะนำคำสั่งใหม่สองคำสั่ง: Compress-Archive และ Expand- Archive คำสั่งบีบอัดและขยายข้อมูล
Get-Command -Noun ArchiveCompress-Archive บีบอัดข้อมูล
Compress-Archive -Path C:\Temp\* -DestinationPath C:\Temp\Compressed.zipไฟล์ ZIP ถูกสร้างขึ้น
Expand-Archive จะขยายขนาดไฟล์
Expand-Archive -Path C:\Temp\Compressed.zip -DestinationPath C:\Temp\ความคิดเพิ่มเติม
หากคุณทำไม่ได้หากไม่มี WinZip ฉันขอแนะนำบทความของฉัน การจัดการแพ็คเกจใน PowerShell (Chocolatey)



