7zip,命令行解压报错:7-Zip cannot find the code that works with archives.

时间:2023-03-09 15:39:46
7zip,命令行解压报错:7-Zip cannot find the code that works with archives.

简单的命令:
7z x zipfile.7z
7-Zip 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18

Error:
7-Zip cannot find the code that works with archives.

着实费解,定位了一会,突然想起来这里用的7z.exe和7z.dll是从其他机器之间拷贝过来的,并不是直接安装。
然后从官网下载了一份最新的7zip安装,但命令行还是不行。

然后把最新安装的7z.exe和7z.dll拷贝到运行目录里,命令行解压正常完成。

这时候才想起来,原来的7z.exe和7z.dll是32位的,新机器是64位,应当是兼容性问题导致。