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 20:04
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » [Discussion] How much do you know about "set"? ------- Application Examples View 19,645 Replies 66
Floor 46 Posted 2009-02-03 22:10 ·  中国 广东 广州 电信
银牌会员
★★★★
SuperCleaner
Credits 2,362
Posts 1,133
Joined 2008-02-02 21:36
18-year member
UID 110072
Gender Male
Status Offline
Hey, no need~ I really revere this title.
Wait until I have certain ability in the future and can surf the Internet for a long time, then I'll recommend myself.
Floor 47 Posted 2009-02-28 22:27 ·  中国 湖北 武汉 电信
初级用户
Credits 24
Posts 20
Joined 2009-01-14 10:15
17-year member
UID 136626
Gender Male
Status Offline
No examples???? Still not quite clear. Give a few more examples.
Floor 48 Posted 2009-03-01 00:28 ·  中国 云南 昆明 联通
新手上路
Credits 15
Posts 8
Joined 2009-02-24 23:54
17-year member
UID 139794
Gender Male
Status Offline
Hehe... I mistook it for SED and thought it was an introduction to the SED command.
Floor 49 Posted 2009-03-01 07:57 ·  中国 黑龙江 哈尔滨 联通
新手上路
Credits 7
Posts 5
Joined 2009-02-09 16:44
17-year member
UID 138417
Gender Male
Status Offline
Floor 50 Posted 2009-03-01 11:29 ·  中国 福建 福州 电信
新手上路
Credits 14
Posts 7
Joined 2008-05-24 11:05
18-year member
UID 119566
Gender Male
Status Offline
Not bad, not bad, let's take a look~~
Floor 51 Posted 2009-03-02 01:28 ·  中国 河南 平顶山 联通
新手上路
Credits 6
Posts 3
Joined 2009-02-26 21:23
17-year member
UID 140040
Gender Male
Status Offline
So frustrated, why is it so hard to learn something?
Floor 52 Posted 2009-03-05 11:31 ·  中国 辽宁 盘锦 辽河油田通信[华宇宽带]
新手上路
Credits 4
Posts 2
Joined 2009-03-01 11:41
17-year member
UID 140285
Gender Male
Status Offline
Why is there no follow-up? Is it an arithmetic sequence?
Floor 53 Posted 2009-03-05 13:04 ·  中国 广东 惠州 电信
新手上路
Credits 8
Posts 4
Joined 2008-12-11 23:43
17-year member
UID 133602
Gender Male
From 洛阳
Status Offline
Nice
Floor 54 Posted 2009-03-07 23:10 ·  中国 湖南 常德 电信
新手上路
Credits 14
Posts 7
Joined 2009-03-01 09:43
17-year member
UID 140273
Gender Male
Status Offline
Why did this such a good post have no follow-up?
Floor 55 Posted 2010-04-21 15:21 ·  中国 山东 济南 联通
初级用户
Credits 27
Posts 18
Joined 2010-03-18 15:26
16-year member
UID 162471
Gender Male
Status Offline
@echo off
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%
echo ---------------------------------------
echo ---------------------------------------
set LgD=start A: Z: Y: X: W: V: U: T: S: R: Q: P: O:
set LgD=%LgDrv% N: M: L: K: J: I: H: G: F: E: D: C: over

echo %LgD%

pause

I think the meaning when the original poster wrote this code at the beginning is:
1. The content after the variable assigned by set will be regarded as a string.
2. And string concatenation can be used.
Floor 56 Posted 2010-04-22 12:15 ·  中国 广东 东莞 电信
新手上路
Credits 4
Posts 2
Joined 2010-04-21 18:21
16-year member
UID 165165
Gender Male
Status Offline
This thing is so profound
Floor 57 Posted 2010-04-28 10:35 ·  中国 湖北 恩施土家族苗族自治州 电信
新手上路
Credits 14
Posts 7
Joined 2010-04-26 19:01
16-year member
UID 165564
Gender Male
Status Offline
Learning
Floor 58 Posted 2010-04-28 16:52 ·  中国 广东 清远 联通
新手上路
Credits 2
Posts 1
Joined 2010-04-26 12:26
16-year member
UID 165538
Gender Male
Status Offline
Support you.................
Floor 59 Posted 2010-06-05 08:27 ·  中国 陕西 安康 汉滨区 电信
初级用户
Credits 37
Posts 18
Joined 2010-06-01 21:01
16-year member
UID 168106
Gender Male
Status Offline
This post is for everyone to discuss, and everyone can express their own opinions
Floor 60 Posted 2010-06-05 16:03 ·  中国 广东 深圳 电信
初级用户
Credits 38
Posts 16
Joined 2010-04-13 00:36
16-year member
UID 164446
Gender Male
Status Offline
pause >>nul
What's the use?
Forum Jump: