|
本帖最后由 wu733 于 2023-3-18 20:21 编辑
稍微修改了一下,居然搞定了,再次感谢!!!
1.注册表
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\CABFolder\Shell\CabExtract]
@="解压缩更新包"
[HKEY_CLASSES_ROOT\CABFolder\Shell\CabExtract\Command]
@="Z:\\CabExtract\\CabExtract.bat %1"
最后一行修改为:@="C:\\CabExtract.bat \"%1\"" 对照图一、图二
2.批处理(CabExtract.bat)代码
echo off
setlocal enabledelayedexpansion
for %%f in (%1) do (
set "FILE_PATH_NO_EXT=%%~dpnf"
if not exist !FILE_PATH_NO_EXT! (
md !FILE_PATH_NO_EXT!
)
expand -i -f:* "%1" !FILE_PATH_NO_EXT!
)
pause
倒数第三行修改为:expand -f:* "%1" !FILE_PATH_NO_EXT! 对照图三
|
|