for /f %%i in (a:\soft\key.txt) do (set /a king=%%i+1)
echo %king% >key.txt
些P处理在纯DOS下运行不了。把%%i改成%i 也运行不了。在此请教一下太家.
echo %king% >key.txt
些P处理在纯DOS下运行不了。把%%i改成%i 也运行不了。在此请教一下太家.
联盟域名:www.cn-dos.net 论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!
This method of parsing, included for compatibility with CMD.EXE, can be
cumbersome and inflexible. For a more powerful method, use FOR with
"@filename" as the set to retrieve each line from the file, as described in
the previous section. Then use variable functions like @INSTR, @LEFT,
@RIGHT, and @WORD to parse the line.