本文共 346 字,大约阅读时间需要 1 分钟。
按123生成文件.bat::set a = 1::for ::if exist %a%.txt() else ( echo 1>1.txt)::if exist *.txt( del *.txt) else ( echo 不存在)::echo %a%>%%a.txt@echo offset lzj=0:beginset /a lzj=%lzj%+1echo %lzj%::if %lzj% == 10 goto endif not exist yufan%lzj%.txt goto endgoto begin:endecho yufan%lzj%>yufan%lzj%.txtexit
清理文件.bat
@echo offif exist *.txt ( del *.txt ) exit
转载地址:http://pljub.baihongyu.com/