for 参数f skip命令语句
命令说明:
跳过文本内容(行):skip
例子:
for /f "skip=1" %%i in(2.txt) do echo %%i
for 参数f eol命令语句
命令说明:
怱略指定字符的文本内容(文本首部):eol=
例子:
for /f "eol=," %%i in (2.txt) do echo %%i
for /f "eol=;" %%i in (2.txt) do echo %%i
for 参数f usebackq命令
命令说明:
增强型命令参数:usebackq
例子:
for 语句 参数 f 这个命令的使用格式;
for /f %%i in (文件名) do echo (...)下面:
for /f %%i in (2.txt) do echo %%i
for /f %%i in ('命令语句') do (...) [''单引号]下面:
for /f %%i in ('osk') do echo %%i
for /f %%i in ("字符串") do (...) [""双引号]下面:
for /f %%i in ("123") d