中国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-11-10 17:00
47,815 topics / 349,930 posts / today 0 new / 48,291 members
DOS学习入门 & 精彩文章 (教学室) » [Discussion] How much do you know about "set"? ------- Application Examples
Printable Version  22,290 / 66
Floor31 huahua0919 Posted 2007-11-17 15:21
银牌会员 Posts 780 Credits 1,608
A good header shouldn't post with documents!
Floor32 huahua0919 Posted 2007-11-17 15:58
银牌会员 Posts 780 Credits 1,608
You need to read the document at least eight times
Floor33 lgggyyy Posted 2008-04-04 13:23
新手上路 Posts 2 Credits 4
Thanks, give a thumbs up. After reading this post, it can broaden my thinking. I didn't understand the application of the SET command at first, but now I understand a bit more. The more such good posts, the better.
Floor34 haiou327 Posted 2008-08-10 20:01
高级用户 Posts 348 Credits 713

This segment assigns LGDRV as the string "1 start 2 A: 7 C: 10 D: 13 E: 16 F: 19 G: 22 H: 25 I: 28 J: 31 K: 34 L: 37 M: 40 N: 43 O: 46 P: 49 Q: 52 R: 55 S: 58 T: 61 U: 64 V: 67 W: 70 X: 73 Y: 76 Z: 78"
Change this sentence to set LgDrv=1 start 2 A: 7 C: 10 D: 13 E: 16 F: 19 G: 22 H: 25 I: 28 J:
set LgDrv=%LgDrv% 31 K: 34 L: 37 M: 40 N: 43 O: 46 P: 49 Q: 52 R: 55 S: 58
set LgDrv=%LgDrv% T: 61 U: 64 V: 67 W: 70 X: 73 Y: 76 Z: 78
echo %lgdrv%
pause

Then you can see the value of variable %LGDRV%




This segment assigns LGDRV as the string "start A: Z: Y: X: W: V: U: T: S: R: Q: P: O: N: M: L: K: J: I: H: G: F: E: D: C: over"

Change this sentence to set LgDrv=start A: Z: Y: X: W: V: U: T: S: R: Q: P: O:
set LgDrv=%LgDrv% N: M: L: K: J: I: H: G: F: E: D: C: over
echo %lgdrv%
pause

Then you can see the value of variable %LGDRV%


[ Last edited by haiou327 on 2008-8-10 at 08:20 PM ]
Floor35 haiou327 Posted 2008-08-10 20:11
高级用户 Posts 348 Credits 713
Usually


These two kinds

[ Last edited by haiou327 on 2008-8-10 at 08:17 PM ]
Floor36 ibest4 Posted 2008-09-02 21:18
新手上路 Posts 1 Credits 2 From 云南
This post is not good~ No follow-up~
Floor37 sou125 Posted 2008-11-24 11:45
贫困用户 Posts 11 Credits -4
Good post
Just makes people have to wait a long time to have follow-up
Floor38 alchemist Posted 2008-11-27 17:02
高级用户 Posts 193 Credits 652
Basically, it's dedicated to batch processing
Floor39 cmdfans Posted 2008-11-27 17:08
新手上路 Posts 2 Credits 4
It's quite abstract?? Some parts are hard to understand
Floor40 luxipeng Posted 2008-12-01 21:19
初级用户 Posts 17 Credits 20
There are not many examples about set raised.
Floor41 mysuntjy Posted 2008-12-03 06:12
新手上路 Posts 10 Credits 13 From 重庆市
Please ask the LZ to explain the usage of SET LglDrv= in the AUTOEXEC.BAT of the WIN98 boot disk, thank you!
Floor42 feiyuguochen Posted 2008-12-12 21:37
初级用户 Posts 36 Credits 34
It would be nice to have some classic examples!
Floor43 iamqiuhui Posted 2009-02-03 14:21
初级用户 Posts 17 Credits 28
Did the original poster really understand?
After reading your article and replies,
it feels not professional enough
Floor44 523066680 Posted 2009-02-03 17:19
银牌会员 Posts 1,133 Credits 2,361
Mainly to discuss... But this post is also from 2006...

Are the moderators considering clearing the continuous dozens of floors of nonsense?
Floor45 HAT Posted 2009-02-03 20:42
版主 Posts 5,017 Credits 9,023
You go apply to be a moderator, I support you to delete posts here : )
Prev  1 2 3 4 5  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023