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-06-24 03:14
中国DOS联盟论坛 » WinPE、PowerShell及其它命令行系统专区 » CMD [Learning] View 16,773 Replies 48
Floor 31 Posted 2008-04-27 02:32 ·  中国 陕西 西安 电信
银牌会员
★★★★
钻石会员
Credits 2,278
Posts 1,020
Joined 2007-11-19 13:34
18-year member
UID 103127
Gender Male
Status Offline
There is still some stuff in the blog study notes on the first floor
山外有山,人外有人;低调做人,努力做事。

进入网盘(各种工具)~~ 空间~~cmd学习
Floor 32 Posted 2008-05-08 23:19 ·  中国 福建 泉州 电信
初级用户
★★
Credits 112
Posts 81
Joined 2008-04-11 23:47
18-year member
UID 115654
Gender Male
Status Offline
~~~~~~~~~~~~~Thanks!
Floor 33 Posted 2008-06-19 22:48 ·  中国 江苏 苏州 电信
初级用户
Credits 52
Posts 28
Joined 2008-05-23 23:23
18-year member
UID 119539
Gender Male
Status Offline
Collect, this needs to be combined with reality, not just understand by looking at it.
您的回复是我发帖的动力
Floor 34 Posted 2008-06-20 14:01 ·  中国 浙江 电信
新手上路
Credits 2
Posts 1
Joined 2006-06-20 21:46
20-year member
UID 57325
Status Offline
Good stuff
Floor 35 Posted 2008-07-03 17:43 ·  中国 江西 南昌 电信
初级用户
Credits 48
Posts 19
Joined 2008-04-16 19:57
18-year member
UID 116095
Gender Male
Status Offline
Good post, good post, good post, good post, good post, good post, good post, good post, good post, good post, good post, good post, good post
Floor 36 Posted 2008-07-03 21:47 ·  中国 天津 联通
新手上路
Credits 2
Posts 1
Joined 2008-02-20 22:22
18-year member
UID 111099
Gender Male
Status Offline
Newbie here, learned a bit though can't understand everything, so I'll just bump it first.
Floor 37 Posted 2008-07-11 12:38 ·  中国 江苏 苏州 昆山市 电信
初级用户
Credits 26
Posts 13
Joined 2007-11-15 21:09
18-year member
UID 102773
Gender Male
From 江苏无锡
Status Offline
Good learning materials
Floor 38 Posted 2008-07-11 16:41 ·  中国 广东 深圳 电信
初级用户
Credits 44
Posts 23
Joined 2008-05-01 15:00
18-year member
UID 117469
Gender Male
Status Offline
Well, let's see. The original text is "怎么说呢!
看过之后才知道自己的无知!". Translating it: "How should I put it!
Only after reading did I realize my own ignorance!"
Floor 39 Posted 2008-07-16 03:45 ·  中国 北京 海淀区 联通
初级用户
Credits 22
Posts 15
Joined 2008-06-23 05:01
18-year member
UID 120728
Gender Male
Status Offline
In the line `set "p="&for /l %%a in (1 1 %1)do call set "p=%%p%%%~3"`, the `call set "p=%%p%%%~3"` part has the following function:

The `for /l` loop is iterating from 1 to the value of `%1`. For each iteration, it is using `call set` to concatenate the current value of `p` with the substring `%~3`. Specifically, `%~3` is taking the third command-line parameter (after removing any surrounding quotes), and in each iteration of the loop, it is appending that substring to the current value of `p`. So it's building up the string `p` by repeatedly appending the third parameter a number of times equal to the value of `%1`.
一起蹲坑
Floor 40 Posted 2008-07-29 21:23 ·  中国 重庆 电信
新手上路
Credits 17
Posts 9
Joined 2008-07-29 18:29
17-year member
UID 122339
Gender Male
Status Offline
Floor 41 Posted 2008-09-29 17:27 ·  中国 广东 佛山 电信
初级用户
★★
Credits 193
Posts 98
Joined 2007-01-17 11:56
19-year member
UID 76803
Gender Male
Status Offline
....Copied for a long time. Finally finished. Thanks to the owner for sharing. Learned
这家伙很聪明 什么都没留下
Floor 42 Posted 2009-02-02 19:38 ·  新加坡 Microsoft
初级用户
★★
Credits 100
Posts 93
Joined 2009-01-14 15:04
17-year member
UID 136661
Gender Male
From 湖南
Status Offline
Originally posted by sparklt at 2008-7-16 03:45:
There is a sentence in the second code of building 15 that I don't understand:
set "p="&for /l %%a in (1 1 %1)do call set "p=%%p%%%~3"
Which expert can explain what the role of the following call set "p=%%p%%%~3" is?


It can be viewed separately: %%P%% (refer to the example program of the building owner above about delay) %~3 (represents the third parameter, the parameters are %1~%9, and %0 is the command line itself)

I don't know if my understanding is correct, please correct it in time
Floor 43 Posted 2009-03-13 11:55 ·  中国 广西 柳州高新区 视虎科技有限公司
新手上路
Credits 3
Posts 2
Joined 2009-03-12 02:51
17-year member
UID 141065
Gender Male
Status Offline
I like this kind of explanation, haha. It's easy to understand at a glance, and anyone who can read can learn it, haha.
Floor 44 Posted 2009-03-18 05:32 ·  中国 河北 唐山 联通
新手上路
Credits 1
Posts 1
Joined 2008-10-27 10:45
17-year member
UID 129212
Gender Male
Status Offline
Good learning materials, I've learned, I'm a novice, thank you!
Floor 45 Posted 2009-03-19 09:51 ·  中国 四川 德阳 电信
中级用户
★★
Credits 274
Posts 192
Joined 2009-01-07 21:09
17-year member
UID 136069
Gender Male
Status Offline
Good post
Forum Jump: