中国DOS联盟论坛

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-24 04:04
47,812 topics / 349,917 posts / today 0 new / 48,274 members
DOS批处理 & 脚本技术(批处理室) » Understanding the interception function of variable characters in CMD
Printable Version  25,419 / 100
Floor31 stornager Posted 2007-03-26 06:20
中级用户 Posts 131 Credits 328
I will strive to catch up with the original poster, thank you!
Floor32 lxmxn Posted 2007-03-27 00:17
版主 Posts 4,938 Credits 11,386
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~
Floor33 lp1129 Posted 2007-03-28 00:14
初级用户 Posts 92 Credits 186
Strong support, gained a lot
Floor34 9306516 Posted 2007-04-14 09:08
新手上路 Posts 5 Credits 13
The answer is dark, dark, dark, dark, dark, dark, dark
Floor35 tongwandou Posted 2007-04-19 11:52
初级用户 Posts 50 Credits 112
This teaching method is great. I can basically extract it, but I don't know what practical value it has?
Floor36 lxmxn Posted 2007-04-19 13:16
版主 Posts 4,938 Credits 11,386
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.
Floor37 minmin888 Posted 2007-05-08 20:57
初级用户 Posts 62 Credits 127
Floor38 8250 Posted 2007-05-09 09:31
新手上路 Posts 6 Credits 12
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?
Floor39 bing614 Posted 2007-05-09 11:05
初级用户 Posts 20 Credits 44
Not bad, learned another trick, thanks to the landlord.
Floor40 lxmxn Posted 2007-05-09 13:29
版主 Posts 4,938 Credits 11,386
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.
Floor41 flyinspace Posted 2007-05-09 13:31
银牌会员 Posts 517 Credits 1,206
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 /?
Floor42 yh6688 Posted 2007-06-01 13:11
初级用户 Posts 12 Credits 20
Floor43 enliang Posted 2007-06-16 11:04
初级用户 Posts 24 Credits 62
Floor44 bd123456789 Posted 2007-06-17 10:42
中级用户 Posts 216 Credits 360
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???
Floor45 tbs198400 Posted 2007-06-17 11:04
初级用户 Posts 22 Credits 46 From 郑州
Hehe, the original poster accidentally met my urgent needs. It's wonderful.
Prev  1 2 3 4 5 67  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023