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 18:39
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » [Discussion] How much do you know about "set"? ------- Application Examples View 19,641 Replies 66
Floor 31 Posted 2007-11-17 15:21 ·  中国 江苏 苏州 吴江区 电信
银牌会员
★★★
Credits 1,608
Posts 780
Joined 2007-10-07 10:19
18-year member
UID 99089
Gender Male
Status Offline
A good header shouldn't post with documents!
Floor 32 Posted 2007-11-17 15:58 ·  中国 江苏 苏州 吴江区 电信
银牌会员
★★★
Credits 1,608
Posts 780
Joined 2007-10-07 10:19
18-year member
UID 99089
Gender Male
Status Offline
You need to read the document at least eight times
Floor 33 Posted 2008-04-04 13:23 ·  中国 台湾 中华电信(HiNet)
新手上路
Credits 4
Posts 2
Joined 2008-04-02 16:36
18-year member
UID 114763
Gender Male
Status Offline
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.
Floor 34 Posted 2008-08-10 20:01 ·  中国 广东 汕头 电信
高级用户
★★★
DOS时空
Credits 713
Posts 348
Joined 2007-02-10 13:59
19-year member
UID 79169
Gender Male
Status Offline
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

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%


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


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 ]
Floor 35 Posted 2008-08-10 20:11 ·  中国 广东 汕头 电信
高级用户
★★★
DOS时空
Credits 713
Posts 348
Joined 2007-02-10 13:59
19-year member
UID 79169
Gender Male
Status Offline
Usually
set LgDrv=Z Y X  W  V  U  T  S R Q P O N M L K  I H G F E D C
or
set LgDrv=Z Y X W V U T S R Q P O N
set LgDrv=%LgDrv% M L K I H G F E D C


These two kinds

[ Last edited by haiou327 on 2008-8-10 at 08:17 PM ]
Floor 36 Posted 2008-09-02 21:18 ·  中国 香港
新手上路
Credits 2
Posts 1
Joined 2008-09-02 18:23
17-year member
UID 124609
Gender Male
From 云南
Status Offline
This post is not good~ No follow-up~
Floor 37 Posted 2008-11-24 11:45 ·  中国 江苏 苏州 电信
贫困用户
Credits -4
Posts 11
Joined 2008-11-20 10:16
17-year member
UID 131515
Gender Male
Status Offline
Good post
Just makes people have to wait a long time to have follow-up
Floor 38 Posted 2008-11-27 17:02 ·  中国 北京 联通
高级用户
★★
Credits 652
Posts 193
Joined 2005-09-25 00:00
20-year member
UID 42822
Status Offline
Basically, it's dedicated to batch processing
ディスケット オペレーティン グシステム
Floor 39 Posted 2008-11-27 17:08 ·  中国 广东 广州 电信
新手上路
Credits 4
Posts 2
Joined 2008-11-26 14:01
17-year member
UID 132140
Gender Male
Status Offline
It's quite abstract?? Some parts are hard to understand
Floor 40 Posted 2008-12-01 21:19 ·  中国 贵州 黔南布依族苗族自治州 都匀市 电信
初级用户
Credits 20
Posts 17
Joined 2008-09-07 13:21
17-year member
UID 125036
Gender Male
Status Offline
There are not many examples about set raised.
处于,并长期处于潜水状态
Floor 41 Posted 2008-12-03 06:12 ·  中国 重庆 沙坪坝区 电信
新手上路
Credits 13
Posts 10
Joined 2008-11-13 00:09
17-year member
UID 130805
Gender Male
From 重庆市
Status Offline
Please ask the LZ to explain the usage of SET LglDrv= in the AUTOEXEC.BAT of the WIN98 boot disk, thank you!
Floor 42 Posted 2008-12-12 21:37
初级用户
Credits 34
Posts 36
Joined 2008-12-11 17:21
17-year member
UID 133562
Gender Male
Status Offline
It would be nice to have some classic examples!
爱死DOS亦无悔!
Floor 43 Posted 2009-02-03 14:21 ·  中国 上海 奉贤区 电信
初级用户
Credits 28
Posts 17
Joined 2008-12-20 14:05
17-year member
UID 134438
Gender Male
Status Offline
Did the original poster really understand?
After reading your article and replies,
it feels not professional enough
Floor 44 Posted 2009-02-03 17:19 ·  中国 广东 广州 电信
银牌会员
★★★★
SuperCleaner
Credits 2,362
Posts 1,133
Joined 2008-02-02 21:36
18-year member
UID 110072
Gender Male
Status Offline
Mainly to discuss... But this post is also from 2006...

Are the moderators considering clearing the continuous dozens of floors of nonsense?
Floor 45 Posted 2009-02-03 20:42 ·  中国 重庆 电信
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
You go apply to be a moderator, I support you to delete posts here : )
Forum Jump: