命令行下貌似无法单独解压某个文件,但是既然是同一个网站下载的,那应可以用同样的规律来排除多余文件。不过楼主懒得说明具体背景条件,那我也懒得去瞎猜了...- @echo off
- for /f "tokens=1* delims==" %%a in ('ftype winrar 2^>nul') do (
- for %%b in (*.rar) do (
- if exist list.txt (
- "%%~dparar.exe" e -y -x@list.txt "%%b"
- ) else (
- for /f "skip=8 eol=- tokens=*" %%b in ('"%%~dparar.exe" v 1.txt') do (
- for /f "eol=: delims=0123456789,%%-/\ " %%c in ("%%b") do (
- if %%~xb neq .txt echo %%~nxb
- )
- )
- )>list.txt
- )
- )
复制代码
|