![]() |
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-09-13 23:01 |
47,812 topics / 349,916 posts / today 0 new / 48,268 members |
| 论坛回收站 » Dear experts, help me see what this means here? |
| Printable Version 1,964 / 1 |
| Floor1 peil1226 | Posted 2009-06-18 05:59 |
| 新手上路 Posts 1 Credits 1 | |
|
The following is the translation of the code comments:
The following is the meaning of this sentence: The `for /l %%i in (1,1,15) do` is a loop structure in batch processing. It will loop 15 times, with the initial value of the loop variable `%%i` being 1, and each loop increments by 1 until it reaches 15. Inside the loop, `set/p a=^><nul` is used to read input (but the input is discarded here as it's just using `^><nul` to handle special characters), and `ping -n 2 127.1>nul` is used to send 2 ICMP echo requests to the loopback address 127.1 and discard the output. |
|
| Floor2 Hanyeguxing | Posted 2009-06-18 08:12 |
| 银牌会员 Posts 897 Credits 1,039 From 在地狱中仰望天堂 | |
|
for /l %%i in (1,1,15) do (。。。用于重复15次运行。。。
set/p a=^><nul,不换行的显示>,^使>转义为普通字符 ping -n 2 127.1>nul,延迟时间 整句就是像win2000开机界面那样,从左向右依次显示15个> for /l %%i in (1,1,15) do (...Used to run 15 times repeatedly... set/p a=^><nul, display without line break>, ^escapes > to a normal character ping -n 2 127.1>nul, delay time The whole sentence is like the boot interface of win2000, displaying 15 > from left to right in turn |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |