中国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-08-06 09:25
48,039 topics / 350,124 posts / today 0 new / 48,251 members
DOS批处理 & 脚本技术(批处理室) » Understanding the interception function of variable characters in CMD
Printable Version  23,845 / 100
Floor1 lxmxn Posted 2006-12-17 06:35
版主 Posts 4,938 Credits 11,386

  In fact, the character interception function of variables in CMD is very practical, but some friends haven't really understood the rules inside. So today I specially wrote the following code, hoping to help novice friends understand the character interception function of variables under CMD.

      Click here to download the attachment (Getstr.rar)

[ Last edited by lxmxn on 2007-10-31 at 06:33 PM ]
Floor2 ccwan Posted 2006-12-17 06:46
金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊
Thanks to brother lxmxn, it has been of great help to beginners like us!
Floor3 zh159 Posted 2006-12-17 06:51
金牌会员 Posts 1,467 Credits 3,687
It is suggested that everyone copy the code, save it as a BAT file, and then add a tab character with TAB before "The character after interception is" and "The value of variable var is", so that the display will be neat.
Floor4 lxmxn Posted 2006-12-17 07:41
版主 Posts 4,938 Credits 11,386

  Re ccwan :
 
  Sweat, are you still a newbie?
  Thanks for the plus points and encouragement. ^_^

  Re zh159 :

  Thanks for your proposal and plus points, brother.
  I spent a long time re-editing the post, but unfortunately, I still didn't achieve a neat display effect in the end. Finally, I had to let everyone download it as an attachment.
Floor5 redtek Posted 2006-12-17 07:47
金牌会员 Posts 1,147 Credits 2,902
So wonderful~~
Why did the font become smaller?
Floor6 lxmxn Posted 2006-12-17 07:57
版主 Posts 4,938 Credits 11,386
Originally posted by redtek at 2006-12-17 07:47:
So wonderful~~
Why did the font become smaller?


  What you mentioned about the font becoming smaller, what exactly are you referring to? My theme's font has become larger instead.
Floor7 jmz573515 Posted 2006-12-17 08:01
银牌会员 Posts 464 Credits 1,212
Good stuff, learning.
Floor8 lianjiang2004 Posted 2006-12-17 10:03
金牌会员 Posts 1,884 Credits 3,946
Learned. Good post.
Floor9 vkill Posted 2006-12-17 21:49
金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽
Floor10 ccwan Posted 2006-12-17 22:03
金牌会员 Posts 1,160 Credits 2,725 From 河北廊坊
If the characters are too small and hard to read, you can hold down the Ctrl key and then scroll the mouse wheel upward to make them larger, and scroll downward to make them smaller.
Floor11 wydos Posted 2006-12-18 00:07
中级用户 Posts 117 Credits 304
Floor12 lxmxn Posted 2006-12-18 03:21
版主 Posts 4,938 Credits 11,386

  Adjusted the font, let's see how big the font is now.
 
  I specifically adjusted the font to be relatively large yesterday, but today when I came to the forum, it suddenly became very small. I don't know the reason.
Floor13 freeapple Posted 2006-12-18 03:35
初级用户 Posts 25 Credits 56
Classic, newcomers are in for a treat! Hehe
Floor14 redtek Posted 2006-12-24 23:59
金牌会员 Posts 1,147 Credits 2,902
Wonderful~~Bump up this great post~:)
Floor15 xuzhenhui Posted 2007-01-13 21:41
初级用户 Posts 10 Credits 22
Good stuff, so good that it's hard to describe. It turns out that batch processing has such detailed functions.
1 2 3 47  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023