如何使用PowerShell压缩和解压ZIP文件
时间:2022-11-04 11:43:54
不知大家有没遇到过要临时压缩或压缩一个 ZIP 文件夹,发现 Windows 上没装解压软件。这种情况在操作服务器时比较常见吧,此时我们就可以搬出万能的 PowerShell 压缩和解压 ZIP 文件。
Compress-Archive 和 Expand-Archive cmdlets 是 PowerShell v5 中的一大改进,大家看名字应该就不难猜出其功能,使用起来也非常简单。
创建 ZIP 压缩文件
Compress-Archive -Path D:Tools -DestinationPath E:Tools_bakcup.zip
解压 ZIP 包
Expand-Archive -Path E:Tools_bakcup.zip -DestinationPath F:Tools
如何使用PowerShell压缩和解压ZIP文件的下载地址:
标签:PowerShell压缩和解压ZIP文件
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Excel2007用特殊方法进行粘贴
2023-05-27 03:45:42
![](https://img.aspxhome.com/file/2023/4/a143324_0s.jpg)
win10快速启动怎么设置?win10快速启动设置方法介绍
2023-03-04 04:28:27
![](https://img.aspxhome.com/file/2023/28/a248758_0s.jpg)
wps文字如何设置项目符号和编号图文教程
2023-10-31 17:46:08
Win10实时网速显示小工具(简单方法)
2023-11-14 07:21:45
![](https://img.aspxhome.com/file/2023/28/a242442_0s.jpg)
Excel实用技巧大全
2023-11-06 00:31:57
如何使用ZBrush 2019 for Mac撤消历史记录?ZBrush 2019Mac的使用教程
2023-07-05 11:59:00
![](https://img.aspxhome.com/file/2023/7/a212817_0s.png )
如何利用Word的高级替换功能 批量给红色字体加上括号
2023-09-08 05:15:52
![](https://img.aspxhome.com/file/2023/6/33466_0s.jpg)
win7凭据管理器加快访问的速度省掉繁琐步骤
2022-11-12 08:01:09
![](https://img.aspxhome.com/file/2023/29/a255468_0s.jpg)
excel2010中记录单在哪里?EXCEL2010怎么添加记录单?
2022-01-21 14:09:18
![](https://img.aspxhome.com/file/2023/7/40327_0s.jpg)
wps文字输入上标
2023-10-28 14:28:18
excel里斜线表头怎么做
2023-03-16 18:02:51
![](https://img.aspxhome.com/file/2023/5/55125_0s.gif)
Excel如何给手机号码加密同时还可以还原加密号码
2022-07-05 15:23:04
![](https://img.aspxhome.com/file/2023/0/36310_0s.png)
微星主板如何开启TPM2.0升级Win11?微星主板BIOS开启TPM2.0
2023-05-29 20:02:14
![](https://img.aspxhome.com/file/2023/27/a237277_0s.png)
win8.1应用商店无法使用不能完成购买改怎么办?
2022-08-09 02:29:36
![](https://img.aspxhome.com/file/2023/29/a252815_0s.jpg)
Excel中怎么在任意地方设置页眉
2022-05-03 11:21:31
![](https://img.aspxhome.com/file/2023/4/37044_0s.jpg)
Win10 20H2搜狗输入法不见了怎么找回?
2023-04-13 19:45:27
![](https://img.aspxhome.com/file/2023/26/a223244_0s.jpg)
iOS 10.3.1 越狱什么时候发布?你还在等待越狱吗
2022-02-24 09:12:23
Word2003打不开怎么办? 1
2023-12-09 17:13:27
![](https://img.aspxhome.com/file/2023/0/20480_0s.jpg)
win10无法创建分区怎么办 win10无法创建分区的详细图文解决方法
2022-06-11 13:15:40
![](https://img.aspxhome.com/file/2023/28/a250703_0s.jpg)
Win10玩不了尤里复仇怎么办?Win10玩不了尤里复仇的解决方法
2023-10-06 23:48:34
![](https://img.aspxhome.com/file/2023/26/a220371_0s.jpg)