6,850
社区成员
发帖
与我相关
我的任务
分享
@echo off
echo name="%1" >tmp\%1.txt
echo ^<workspace^> >>tmp\%1.txt
echo ^<textcolor^>#%2^</textcolor^> >>tmp\%1.txt
echo ^<drawer^> >>tmp\%1.txt
echo ^<textcolor^>#%3^</textcolor^> >>tmp\%1.txt
type tmp\%1.txt
del tmp\%1.txt
@echo off
rd /q /s tmp
md tmp
for /f "delims=" %%i in (b.txt) do (
if exist tmp\%%i (
echo stop > tmp\stop
echo "冲突"%%i
goto exit
) else (
a.bat %%i > tmp\%%i
)
)
:exit
@echo off
echo %1
b.txt,数据文件Bline1
line2
line1
line4
line5
c.bat
@echo off
rd /q /s tmp
md tmp
for /f "delims=" %%i in (b.txt) do (
if exist tmp\%%i (
echo stop > tmp\stop
echo "冲突"%%i
goto exit
) else (
if exist tmp\stop (
goto exit
) else (
a.bat %%i > tmp\%%i
)
)
)
:exit