发布网友 发布时间:2022-04-25 12:47
共1个回答
热心网友 时间:2024-03-03 20:32
帮你重新排版下,累人@echo off
if exist head.txt ren head.txt head.1
if exist tail.txt ren tail.txt tail.1
if exist head.1 goto existhead
echo 不存在head.txt文件
goto end
:existhead
if exist tail.1 goto existtail
echo 不存在tail.txt文件
goto end
:existtail
if exist ok goto op
md ok
:op
for %%b in (*.txt) do copy /b head.1+%%b+tail.1 ok\%%b
:end
if exist head.1 ren head.1 head.txt
if exist tail.1 ren tail.1 tail.txt
pause