关键词:bat,bat获取文件内容
1、获取每行内容
@echo off
for /f "delims=" %%i in (config.txt) do (echo "%%i")
timeout /t 100
2、在for中执行多条命令
一般形式:
for in (set) do (命令a&命令b&命令c)
案例:
@echo off
for /f "delims=" %%i in (Config.txt) do (set /p="%date% %time%: " <nul >>1.txt & curl.exe "%%i">>1.txt & echo >>1.txt )
timeout /t 100
原文地址:https://www.cnblogs.com/gered/p/10682741.html
时间: 2024-10-09 06:04:20