win 11 命令行 解压

将当前路径中,排除指定路径后的文件,压缩为文件

 tar -czf archive_2026-07-16.zip --exclude='node_modules' --exclude='*.mp3' --exclude='*.mp4' --exclude='*.zip' --exclude='out' --exclude='__pycache__' .

 

创建文件夹,解压到此相对路径文件夹中

 $dst = ".\archive_2026-07-16"; New-Item -ItemType Directory -Force -Path $dst | Out-Null; tar -xvf ".\archive_2026-07-16.zip" -C $dst

  

posted @ 2026-07-17 09:11  人间春风意  阅读(14)  评论(0)    收藏  举报