windows自带压缩工具 makecab压缩 expand解压 解决ERROR: is not a file

it2024-03-22  64

windows自带压缩工具 makecab压缩 expand解压

解决ERROR: is not a file

压缩单个文件

makecab C:\Users\1\Desktop\测试压缩.txt C:\Users\1\Desktop\测试压缩.zip

解压单个文件

expand C:\Users\1\Desktop\测试压缩.zip C:\Users\1\Desktop\测试压缩.txt

压缩文件夹报错

makecab C:\Users\1\Desktop\123 C:\Users\1\Desktop\123.zip

报错内容

ERROR: C:\Users\1\Desktop\123 is not a file

解决办法

将文件夹中的子目录放到一个文档中

dir \b >>namelist.txt

压缩该文档,生成.cab文件

makecab /f namelist.txt

解压.cab文件,放到指定目录

expand 1.cab -f:* c:\abc\

欢迎大家交流学习,任何问题都可以留言

最新回复(0)