本帖最后由 Nsqs 于 2022-1-8 16:33 编辑
这要是怕麻烦那就干脆不要写代码了- @echo off
- for /f "tokens=1 delims=:" %%1 in ('findstr /ni "^::data$" "%~0"')do (
- set count=%%1
- )
-
- for /f "delims=" %%1 in ('more +%count%^<"%~0"')do (
- call set file=%%file%% %%1
- )
- echo %file%
- pause
-
-
-
-
- goto :eof
- ::data
-
- "test.bin" "test2.bin" "note.txt" "ext"
- "release_rar" "release_rar2" "release_rar3"
- "doc" "release_rar5"
复制代码
|