无忧启动论坛

标题: Expand 能展开含目录结构的 CAB 文件吗? [打印本页]

作者: chishingchan    时间: 2025-3-12 14:51
标题: Expand 能展开含目录结构的 CAB 文件吗?
我使用 表 FileList.txt 文件,压缩了一个 CAB 文件(请下载示例: 搜狗五笔输入法SogouWBInput.cab 文件)

命令行如下:
MakeCAB.exe /D MaxDiskSize=1024000000 /D CompressionType=LZX /D CompressionMemory=21 /F ""FileList.txt"
表 FileList.txt 内容如下:
  1. .set DestinationDir="SogouWBInput\3.1.0.1751"
  2. "SogouWBInput\3.1.0.1751\code.bin"
  3. "SogouWBInput\3.1.0.1751\ConfigIE.exe"
  4. "SogouWBInput\3.1.0.1751\ImeUtil.exe"
  5. "SogouWBInput\3.1.0.1751\PersonalCenter.cupf"
  6. "SogouWBInput\3.1.0.1751\phrases.ini"
  7. "SogouWBInput\3.1.0.1751\Punctures.ini"
  8. "SogouWBInput\3.1.0.1751\py.bin"
  9. "SogouWBInput\3.1.0.1751\pycode.bin"
  10. "SogouWBInput\3.1.0.1751\Resource.dll"
  11. "SogouWBInput\3.1.0.1751\richinput.cupf"
  12. "SogouWBInput\3.1.0.1751\sgim_querypy.bin"
  13. "SogouWBInput\3.1.0.1751\sgim_quick.bin"
  14. "SogouWBInput\3.1.0.1751\sgim_tra.bin"
  15. "SogouWBInput\3.1.0.1751\SGWbConfig.cupf"
  16. "SogouWBInput\3.1.0.1751\SGWbWizardNew.cupf"
  17. "SogouWBInput\3.1.0.1751\ToolBox.cupf"
  18. "SogouWBInput\3.1.0.1751\UserPage.exe"
  19. "SogouWBInput\3.1.0.1751\wb.bin"
  20. "SogouWBInput\3.1.0.1751\WbConfig.exe"
  21. "SogouWBInput\3.1.0.1751\WbEtymonMap.cupf"
  22. "SogouWBInput\3.1.0.1751\WbSkin.dat"
  23. .set DestinationDir="SogouWBInput\3.1.0.1751\Components\HandInput"
  24. "SogouWBInput\3.1.0.1751\Components\HandInput\HandInput.dll"
  25. "SogouWBInput\3.1.0.1751\Components\HandInput\handinput.exe"
  26. "SogouWBInput\3.1.0.1751\Components\HandInput\handinput_SogouWB.cupf"
  27. "SogouWBInput\3.1.0.1751\Components\HandInput\lm_HW_PB_7000_kn.arpa.7e9.prune.1e-7.lm.fixed"
  28. "SogouWBInput\3.1.0.1751\Components\HandInput\overlapEngine.dll"
  29. "SogouWBInput\3.1.0.1751\Components\HandInput\sgim_annex.bin"
  30. "SogouWBInput\3.1.0.1751\Components\HandInput\sgim_hz.bin"
  31. "SogouWBInput\3.1.0.1751\Components\HandInput\sgim_py.bin"
  32. "SogouWBInput\3.1.0.1751\Components\HandInput\singleEngine.dll"
  33. .set DestinationDir="SogouWBInput\3.1.0.1751\Components\ScreenCapture"
  34. "SogouWBInput\3.1.0.1751\Components\ScreenCapture\screencapture.cupf"
  35. "SogouWBInput\3.1.0.1751\Components\ScreenCapture\ScreenCapture.dll"
  36. "SogouWBInput\3.1.0.1751\Components\ScreenCapture\screencapture.exe"
  37. .set DestinationDir="SogouWBInput\3.1.0.1751\Plugins"
  38. "SogouWBInput\3.1.0.1751\Plugins\AutoNewWord.dll"
  39. "SogouWBInput\3.1.0.1751\Plugins\BatchNewWord.dll"
  40. "SogouWBInput\3.1.0.1751\Plugins\ManualNewWord.dll"
  41. "SogouWBInput\3.1.0.1751\Plugins\PunctureModule.dll"
  42. "SogouWBInput\3.1.0.1751\Plugins\StatisticsModule.dll"
  43. "SogouWBInput\3.1.0.1751\Plugins\WbQueryWindow.exe"
  44. .set DestinationDir="SogouWBInput\3.1.0.1751\RichInput"
  45. "SogouWBInput\3.1.0.1751\RichInput\richinputconfig.ini"
复制代码
但是,Expand.exe 试了所有参数都没办法解压缩(展开)!
大家有接触过这方面的技术吗?!


作者: holley2008    时间: 2025-3-12 15:38
本帖最后由 holley2008 于 2025-3-12 15:43 编辑

我这边展开是正常呢mkdir D:\Output
expand C:\Users\Administrator\Desktop\SogouWBInput.cab -F:* D:\Output\


作者: 527104427    时间: 2025-3-12 15:47
这个老问题了,xp的expand不能解压目录树,都是一股脑解压到根目录
解决办法也简单,就是替换成win7的expand即可
作者: martin313    时间: 2025-3-12 16:14
本帖最后由 martin313 于 2025-3-12 16:15 编辑

用winrar的自解压包就行了,简单,比如自解压包的文件名为test.exe
批处理解压命令:call "你的路径\test.exe" /s
并且自动覆盖

作者: chishingchan    时间: 2025-3-12 16:23
holley2008 发表于 2025-3-12 15:38
我这边展开是正常呢mkdir D:\Output
expand C:%users\Administrator\Desktop\SogouWBInput.cab -F:* D:\Ou ...
  1. [url=home.php?mod=space&uid=336905]@echo[/url] off
  2. cd /d "%~dp0"
  3. md C:\123
  4. expand SogouWBInput.cab -F:*.* C:\123\
复制代码

作者: cutebe    时间: 2025-3-12 16:55
标题: Win10的expand测试可以
本帖最后由 cutebe 于 2025-3-12 16:57 编辑

D:\Downloads>expand SogouWBInput.cab abc
Microsoft (R) 文件扩展实用程序
版权所有 (c) Microsoft Corporation。保留所有权利。

sogouwbinput.cab: 多文件 CAB 要求目标目录。     //错误提示


D:\Downloads>md abc

D:\Downloads>expand SogouWBInput.cab abc
Microsoft (R) 文件扩展实用程序
版权所有 (c) Microsoft Corporation。保留所有权利。

源文件含有多个文件。需要 -F:filespec 选项来指定     //错误提示
要展开哪些文件。-F:* 可被用来
展开所有文件。有关详细信息,请键入 EXPAND -?。

D:\Downloads>expand SogouWBInput.cab -f:* abc
Microsoft (R) 文件扩展实用程序
版权所有 (c) Microsoft Corporation。保留所有权利。

正在将 abc\SogouWBInput\3.1.0.1751\code.bin 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\ConfigIE.exe 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\ImeUtil.exe 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\PersonalCenter.cupf 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\phrases.ini 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\Punctures.ini 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\py.bin 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\pycode.bin 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\Resource.dll 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\richinput.cupf 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\sgim_querypy.bin 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\sgim_quick.bin 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\sgim_tra.bin 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\SGWbConfig.cupf 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\SGWbWizardNew.cupf 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\ToolBox.cupf 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\UserPage.exe 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\wb.bin 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\WbConfig.exe 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\WbEtymonMap.cupf 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\WbSkin.dat 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\Components\HandInput\HandInput.dll 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\Components\HandInput\handinput.exe 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\Components\HandInput\handinput_SogouWB.cupf 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\Components\HandInput\lm_HW_PB_7000_kn.arpa.7e9.prune.1e-7.lm.fixed 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\Components\HandInput\overlapEngine.dll 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\Components\HandInput\sgim_annex.bin 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\Components\HandInput\sgim_hz.bin 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\Components\HandInput\sgim_py.bin 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\Components\HandInput\singleEngine.dll 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\Components\ScreenCapture\screencapture.cupf 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\Components\ScreenCapture\ScreenCapture.dll 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\Components\ScreenCapture\screencapture.exe 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\Plugins\AutoNewWord.dll 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\Plugins\BatchNewWord.dll 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\Plugins\ManualNewWord.dll 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\Plugins\PunctureModule.dll 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\Plugins\StatisticsModule.dll 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\Plugins\WbQueryWindow.exe 添加到提取队列
正在将 abc\SogouWBInput\3.1.0.1751\RichInput\richinputconfig.ini 添加到提取队列

正在展开文件 ....

完成展开文件 ...
总共 40 个文件。     //成功提示

D:\Downloads>expand SogouWBInput.cab -f:* .


作者: l3429900    时间: 2025-3-12 18:12
7ZIP不可以?
作者: cutebe    时间: 2025-3-12 20:21
标题: Win7x64测试正常,解压到当前目录
取自Win7x64SP1的expand.exe
三万。123684.com/s/51B5jv-hPZgv?提取码:wuyo
三万。123912.com/s/51B5jv-hPZgv?提取码:wuyo

Microsoft Windows [版本 6.1.7601]
版权所有 (c) 2009 Microsoft Corporation。保留所有权利。

E:\其他\测试>expand SogouWBInput.cab -f:* .
Microsoft (R) 文件扩展实用程序版本 6.1.7601.26167
版权所有 (c) Microsoft Corporation。保留所有权利。

正在将 .\SogouWBInput\3.1.0.1751\code.bin 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\ConfigIE.exe 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\ImeUtil.exe 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\PersonalCenter.cupf 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\phrases.ini 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\Punctures.ini 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\py.bin 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\pycode.bin 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\Resource.dll 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\richinput.cupf 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\sgim_querypy.bin 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\sgim_quick.bin 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\sgim_tra.bin 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\SGWbConfig.cupf 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\SGWbWizardNew.cupf 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\ToolBox.cupf 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\UserPage.exe 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\wb.bin 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\WbConfig.exe 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\WbEtymonMap.cupf 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\WbSkin.dat 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\Components\HandInput\HandInput.dll 添加到提取队

正在将 .\SogouWBInput\3.1.0.1751\Components\HandInput\handinput.exe 添加到提取队

正在将 .\SogouWBInput\3.1.0.1751\Components\HandInput\handinput_SogouWB.cupf 添
加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\Components\HandInput\lm_HW_PB_7000_kn.arpa.7e9.
prune.1e-7.lm.fixed 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\Components\HandInput\overlapEngine.dll 添加到提
取队列
正在将 .\SogouWBInput\3.1.0.1751\Components\HandInput\sgim_annex.bin 添加到提取
队列
正在将 .\SogouWBInput\3.1.0.1751\Components\HandInput\sgim_hz.bin 添加到提取队列

正在将 .\SogouWBInput\3.1.0.1751\Components\HandInput\sgim_py.bin 添加到提取队列

正在将 .\SogouWBInput\3.1.0.1751\Components\HandInput\singleEngine.dll 添加到提
取队列
正在将 .\SogouWBInput\3.1.0.1751\Components\ScreenCapture\screencapture.cupf 添
加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\Components\ScreenCapture\ScreenCapture.dll 添加
到提取队列
正在将 .\SogouWBInput\3.1.0.1751\Components\ScreenCapture\screencapture.exe 添加
到提取队列
正在将 .\SogouWBInput\3.1.0.1751\Plugins\AutoNewWord.dll 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\Plugins\BatchNewWord.dll 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\Plugins\ManualNewWord.dll 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\Plugins\PunctureModule.dll 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\Plugins\StatisticsModule.dll 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\Plugins\WbQueryWindow.exe 添加到提取队列
正在将 .\SogouWBInput\3.1.0.1751\RichInput\richinputconfig.ini 添加到提取队列

正在展开文件 ....

完成展开文件 ...
总共 40 个文件。

E:\其他\测试>
作者: l191128    时间: 2025-3-13 00:47
感谢分享
作者: dksoft    时间: 2025-3-13 08:41
路过围观跟着学
作者: chishingchan    时间: 2025-3-13 10:24
換了一個繁體 Windows 7 SP1 32位,竟然可以了!簡體 Windows 7 SP1 64位只顯示了一個下劃線在閃爍!






欢迎光临 无忧启动论坛 (http://bbs.wuyou.net/) Powered by Discuz! X3.3