码迷,mamicode.com
首页 > 系统相关 > 详细

【PowerShell】文件的解压与压缩

时间:2017-09-08 20:27:47      阅读:243      评论:0      收藏:0      [点我收藏+]

标签:com   ati   文件   force   div   archive   tin   文件的   新建   

1 New-Item -ItemType File 1.txt -Force #新建文本文件
2 Compress-Archive -Path ‘1.txt‘ -DestinationPath ‘1.zip‘ -Force #压缩为zip
3 Expand-Archive -Path ‘1.zip‘ -DestinationPath ‘新建文件夹‘ -Force #解压到新文件夹内

 

【PowerShell】文件的解压与压缩

标签:com   ati   文件   force   div   archive   tin   文件的   新建   

原文地址:http://www.cnblogs.com/XiaoCY/p/7496160.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!