【问题标题】:Zip from command line with Windows 11 [closed]使用 Windows 11 从命令行压缩 [关闭]
【发布时间】:2021-12-28 19:10:21
【问题描述】:

使用新的 Windows 11 功能压缩文件的 cmd 工具是什么? (资源管理器默认使用的那个)。 我试过 zip、7zip、压缩...

谢谢

【问题讨论】:

    标签: cmd zip windows-11


    【解决方案1】:

    你的机器有 PowerShell。

    来自 cmd.exe:

    powershell -NoLogo -NoProfile -Command Compress-Archive
    

    从 PowerShell 控制台:

    Compress-Archive
    

    仅供参考:

    help Compress-Archive -Full
    

    【讨论】:

      【解决方案2】:

      在较新的 Windows 10 上用于 zip 处理的 CMD 工具,因此我认为延续到 Win 11 的是 TAR,但它不是“资源管理器中默认使用的工具”,因为该系统内置功能已经存在,因为我想想,至少 XP”

      Tar --help

      要列出使用Tar -tf file.zip

      提取使用Tar -m -xf file.zip

      要压缩使用Tar -a -cf new.zip files

      其他选项可用

      【讨论】:

        猜你喜欢
        • 2010-10-03
        • 2010-11-04
        • 2012-06-25
        • 1970-01-01
        • 1970-01-01
        • 2013-04-12
        • 1970-01-01
        • 1970-01-01
        • 2014-07-21
        相关资源
        最近更新 更多