You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Windows下新版Unzip工具执行指定解压命令时出现filename not matched错误的问题咨询

Windows下新版Unzip工具执行指定解压命令时出现filename not matched错误的问题咨询

各位好,我最近在使用Unzip工具提取JAR包里的Scala文件时遇到了版本兼容问题,想请大家帮忙分析解决:

我一直用这条命令来提取指定类型的文件:

unzip sources.jar *.scala -d sources_extracted

在旧版本的Unzip工具上,这条命令能正常工作,成功把所有.scala文件提取到sources_extracted目录下,执行时会输出类似这样的日志:

inflating: sources_extracted/path/to/file.scala

这个旧版本的Unzip信息如下:

UnZip 5.51 of 22 May 2004, by Info-ZIP.  Maintained by C. Spieler.  
Send bug reports as per README instructions; see README for details.

Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
  Default action is to extract files in list, except those in xlist, to exdir;
  file[.zip] may be a wildcard.  -Z => ZipInfo mode ("unzip -Z" for usage).

  -p  extract files to pipe, no messages     -l  list files (short format)
  -f  freshen existing files, create none    -t  test compressed archive data
  -u  update files, create if necessary      -z  display archive comments

但换成Windows上的新版Unzip工具执行同样的命令时,却直接报错filename not matched: *.scala,完全无法提取指定类型的文件。有没有人遇到过类似的问题?这是新版Unzip的语法规则变化导致的吗?应该怎么调整命令才能让新版工具也正常完成提取操作呢?

备注:内容来源于stack exchange,提问作者Nicolas Baumann

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.17 11:03:10