China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-29 09:01
中国DOS联盟论坛 » 论坛回收站 » Dear experts, help me see what this means here? View 1,840 Replies 1
Original Poster Posted 2009-06-18 05:59 ·  中国 浙江 杭州 电信
新手上路
Credits 1
Posts 1
Joined 2009-06-15 05:45
17-year member
UID 147434
Gender Male
Status Offline
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.
Floor 2 Posted 2009-06-18 08:12 ·  中国 吉林 延边朝鲜族自治州 延吉市 电信
银牌会员
★★★
正在学习中的菜鸟...
Credits 1,039
Posts 897
Joined 2009-03-01 15:34
17-year member
UID 140302
Gender Male
From 在地狱中仰望天堂
Status Offline
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
Forum Jump: