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-20 05:28
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Understanding the interception function of variable characters in CMD View 22,966 Replies 100
Floor 31 Posted 2007-03-26 06:20 ·  中国 湖北 武汉 电信
中级用户
★★
scriptlover
Credits 328
Posts 131
Joined 2007-03-25 22:17
19-year member
UID 82910
Gender Male
Status Offline
I will strive to catch up with the original poster, thank you!
Floor 32 Posted 2007-03-27 00:17 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline
Originally posted by stornager at 2007-3-25 17:20:
I want to strive to catch up with the original poster, thank you!


  Hehe, I hope so~
Floor 33 Posted 2007-03-28 00:14 ·  IANA 局域网IP(Private-Use)
初级用户
★★
Credits 186
Posts 92
Joined 2007-03-27 08:20
19-year member
UID 83047
Gender Male
Status Offline
Strong support, gained a lot
Floor 34 Posted 2007-04-14 09:08 ·  中国 贵州 黔西南布依族苗族自治州 兴义市 电信
新手上路
Credits 13
Posts 5
Joined 2007-04-14 08:45
19-year member
UID 85113
Gender Male
Status Offline
The answer is dark, dark, dark, dark, dark, dark, dark
Floor 35 Posted 2007-04-19 11:52 ·  中国 陕西 西安 电信
初级用户
★★
Credits 112
Posts 50
Joined 2007-04-15 00:59
19-year member
UID 85191
Gender Male
Status Offline
This teaching method is great. I can basically extract it, but I don't know what practical value it has?
Floor 36 Posted 2007-04-19 13:16 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline
Regarding tongwandou:

The practical value is quite significant. For example, you can extract the first 3 characters of a string, or the last 5 characters, or the characters from the 10th to the 20th, and many of these can be applied.
Floor 37 Posted 2007-05-08 20:57 ·  中国 广东 中山 电信
初级用户
★★
Credits 127
Posts 62
Joined 2007-04-19 12:43
19-year member
UID 85744
Gender Male
Status Offline
Floor 38 Posted 2007-05-09 09:31 ·  中国 广东 深圳 龙岗区 电信
新手上路
Credits 12
Posts 6
Joined 2006-03-29 16:03
20-year member
UID 52996
Status Offline
Originally posted by lxmxn at 2007-1-16 04:39:

  goto :eof If it is inside a label, it means to jump out of this label. If it is in other positions of the batch program, it means to jump to the end of the batch program, which means to exit the batch program.

First of all, thank you to the moderator for sharing.
Secondly, I would like to ask a question:
Is :eof a special label different from ordinary labels?
Floor 39 Posted 2007-05-09 11:05 ·  中国 广东 中山 电信
初级用户
Credits 44
Posts 20
Joined 2007-05-02 21:53
19-year member
UID 87305
Gender Male
Status Offline
Not bad, learned another trick, thanks to the landlord.
Floor 40 Posted 2007-05-09 13:29 ·  中国 湖北 武汉 电信
版主
★★★★★
Credits 11,386
Posts 4,938
Joined 2006-07-23 17:10
19-year member
UID 59080
Status Offline
Originally posted by 8250 at 2007-5-9 09:31:

First of all, thank you to the moderator for sharing.

Secondly, I would like to ask a question:
Is :eof a special tag different from ordinary tags?

:EOF is generally used together with the goto command, which means End Of File, that is, the end of the file.

If this goto :EOF is in a batch file, it means jumping to the end of the file, which can be understood as exiting the batch processing. If goto :EOF is in a label program of a batch script program, then it exits the current label and returns to the batch script program.

You can understand its function through some exercises.
Floor 41 Posted 2007-05-09 13:31 ·  中国 广东 广州 天河区 电信
银牌会员
★★★
Credits 1,206
Posts 517
Joined 2007-03-25 01:18
19-year member
UID 82819
Gender Male
Status Offline
Originally posted by lxmxn at 2007-5-9 01:29 PM:

:EOF generally works together with the goto command, meaning End Of File, that is, the end of the file.

If this goto :EOF is in a batch file, it means jumping to the end of the file, which can be understood as exiting the batch...


You can learn about this by using call /? and goto /?
知,不觉多。不知,乃求知
Floor 42 Posted 2007-06-01 13:11 ·  中国 北京 联通
初级用户
Credits 20
Posts 12
Joined 2007-06-01 12:47
19-year member
UID 89957
Gender Male
Status Offline
Floor 43 Posted 2007-06-16 11:04 ·  中国 浙江 宁波 电信
初级用户
Credits 62
Posts 24
Joined 2007-03-17 09:34
19-year member
UID 82057
Gender Male
Status Offline
Floor 44 Posted 2007-06-17 10:42 ·  中国 浙江 嘉兴 海宁市 电信
中级用户
★★
Credits 360
Posts 216
Joined 2007-05-29 17:41
19-year member
UID 89677
Gender Male
Status Offline
Great, thank you for the guidance!
However, I need to ask a question:
What does "pause>nul" mean???
Also, why enable "delayed environment variable expansion"
What is its use???
Floor 45 Posted 2007-06-17 11:04 ·  中国 河南 郑州 联通
初级用户
Credits 46
Posts 22
Joined 2006-08-06 13:27
19-year member
UID 59949
Gender Male
From 郑州
Status Offline
Hehe, the original poster accidentally met my urgent needs. It's wonderful.
Forum Jump: