![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-10-26 16:44 |
47,815 topics / 349,928 posts / today 0 new / 48,288 members |
| DOS启动盘 & LOGO技术 (启动盘室) » Question: how do you use for in DOS? |
| Printable Version 996 / 1 |
| Floor1 winddeity | Posted 2003-10-28 00:00 |
| 初级用户 Posts 62 Credits 311 | |
|
I read the manual too but still didn't quite understand it; the explanation was too sketchy. Asking the experts here.
|
|
| Floor2 dos时代菜鸟 | Posted 2003-10-28 00:00 |
| 初级用户 Posts 216 Credits 672 | |
|
Format: for %% in do
Function: repeatedly execute the DOS command in the for statement. For example: suppose the batch file abc.bat contains the following: for %%c in (*.txt) do type %%c The result of executing it is that it displays the contents of all files with the txt extension in the current directory one by one. The loop does not end until all of them have been displayed. Equivalent to executing the type command one file at a time |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |