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-31 22:27
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Some doubts about the set command (solved) View 9,439 Replies 44
Floor 31 Posted 2007-08-09 23:49 ·  中国 广东 广州 海珠区 电信
初级用户
★★
Credits 136
Posts 51
Joined 2007-08-04 21:31
18-year member
UID 94657
Gender Male
Status Offline
Learned a lot..
Really appreciate
Floor 32 Posted 2007-09-10 11:43 ·  中国 北京 鹏博士BGP
初级用户
Credits 66
Posts 29
Joined 2007-09-06 15:09
18-year member
UID 96715
Gender Male
Status Offline
Originally posted by 0401 at 2007-1-21 03:13 AM:
Question 2:
If you carefully check the help of , you will see such a sentence , which means replacing all characters or strings in the variable with . The help also says that For example, if the value of variable is , after executing , the value of variable is .
Then this sentence can be understood as deleting all quotation marks in the variable and assigning the processed value back to . There are quotation marks because the character it needs to handle is a .


Does in allow being a variable?
Floor 33 Posted 2007-09-10 14:01 ·  中国 北京 鹏博士BGP
初级用户
Credits 66
Posts 29
Joined 2007-09-06 15:09
18-year member
UID 96715
Gender Male
Status Offline
set var1=abc
set var2=bc
set var=%var1:var2=%
@echo %var%

It seems that the value of var is not a as written.
Floor 34 Posted 2007-11-18 08:56 ·  中国 广东 广州 天河区 电信
初级用户
Credits 70
Posts 38
Joined 2007-05-23 07:20
19-year member
UID 89024
Gender Male
Status Offline
Well detailed, rookies understand
Floor 35 Posted 2007-11-28 15:29 ·  中国 广东 肇庆 端州区 电信
新手上路
Credits 17
Posts 9
Joined 2007-07-27 13:34
19-year member
UID 94128
Gender Male
Status Offline
The answer on the 5th floor is very detailed
Floor 36 Posted 2007-11-29 11:58 ·  中国 广东 深圳 福田区 电信
新手上路
Credits 12
Posts 5
Joined 2007-11-28 11:43
18-year member
UID 104031
Gender Male
Status Offline
Floor 37 Posted 2008-01-15 16:45 ·  中国 湖南 长沙 电信
初级用户
★★
Credits 187
Posts 87
Joined 2007-10-23 16:04
18-year member
UID 100558
Gender Male
Status Offline
It is indeed explained very carefully! It makes people clear at a glance!
Floor 38 Posted 2008-01-15 17:00 ·  中国 山东 烟台 联通
中级用户
★★
Credits 257
Posts 123
Joined 2008-01-05 11:08
18-year member
UID 107722
Gender Male
From 烟台
Status Offline
0401
Good friend of a novice
路 是自己选的
学习 是为了具备解决问题的能力
Floor 39 Posted 2008-01-15 17:00 ·  中国 山东 烟台 联通
中级用户
★★
Credits 257
Posts 123
Joined 2008-01-05 11:08
18-year member
UID 107722
Gender Male
From 烟台
Status Offline
Bump
路 是自己选的
学习 是为了具备解决问题的能力
Floor 40 Posted 2008-01-15 20:11 ·  中国 广东 阳江 电信
初级用户
Credits 39
Posts 20
Joined 2007-05-14 02:07
19-year member
UID 88451
Gender Male
Status Offline
Floor 41 Posted 2008-01-16 13:08 ·  中国 重庆 忠县 电信
新手上路
Credits 10
Posts 4
Joined 2008-01-11 22:31
18-year member
UID 108345
Gender Male
Status Offline
Learning
Floor 42 Posted 2008-01-16 13:21 ·  中国 北京 联通
中级用户
★★
Credits 206
Posts 100
Joined 2007-07-09 20:51
19-year member
UID 93566
Gender Male
Status Offline
Floor 43 Posted 2008-01-22 18:09 ·  中国 广东 东莞 电信
初级用户
Credits 61
Posts 30
Joined 2008-01-16 05:45
18-year member
UID 108734
Gender Male
Status Offline
Please provide the content from the 5th floor that needs to be translated.
Floor 44 Posted 2008-11-08 13:01 ·  中国 湖南 长沙 电信
新手上路
Credits 18
Posts 17
Joined 2008-11-07 22:13
17-year member
UID 130325
Gender Male
Status Offline
It has been of great help to me... Thank you
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
HAT -2 2008-12-07 18:00
Floor 45 Posted 2008-12-07 17:17 ·  中国 福建 福州 电信
新手上路
Credits 0
Posts 2
Joined 2008-12-04 16:02
17-year member
UID 132867
Gender Male
Status Offline
0401 This brother is indeed enthusiastic...
Not bad ha... Learned a lot of things...
Actually, I am also a beginner...
Hehe,,, Take a look at more posts!!!
Recent Ratings for This Post ( 1 in total) Click for details
RaterScoreTime
HAT -2 2008-12-07 18:00
Forum Jump: