中国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,291 / 66
Floor46 523066680 Posted 2009-02-03 22:10
银牌会员 Posts 1,133 Credits 2,361
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.
Floor47 mn960mn Posted 2009-02-28 22:27
初级用户 Posts 20 Credits 24
No examples???? Still not quite clear. Give a few more examples.
Floor48 liuxy321 Posted 2009-03-01 00:28
新手上路 Posts 8 Credits 15
Hehe... I mistook it for SED and thought it was an introduction to the SED command.
Floor49 shoot Posted 2009-03-01 07:57
新手上路 Posts 5 Credits 7
Floor50 limiqi Posted 2009-03-01 11:29
新手上路 Posts 7 Credits 14
Not bad, not bad, let's take a look~~
Floor51 xcyd002 Posted 2009-03-02 01:28
新手上路 Posts 3 Credits 6
So frustrated, why is it so hard to learn something?
Floor52 253255441 Posted 2009-03-05 11:31
新手上路 Posts 2 Credits 4
Why is there no follow-up? Is it an arithmetic sequence?
Floor53 ningxy Posted 2009-03-05 13:04
新手上路 Posts 4 Credits 8 From 洛阳
Nice
Floor54 liuok Posted 2009-03-07 23:10
新手上路 Posts 7 Credits 14
Why did this such a good post have no follow-up?
Floor55 xueshan007050 Posted 2010-04-21 15:21
初级用户 Posts 18 Credits 27
@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.
Floor56 165527339 Posted 2010-04-22 12:15
新手上路 Posts 2 Credits 4
This thing is so profound
Floor57 ysjpl1989 Posted 2010-04-28 10:35
新手上路 Posts 7 Credits 14
Learning
Floor58 DOSnewsuser Posted 2010-04-28 16:52
新手上路 Posts 1 Credits 2
Support you.................
Floor59 kexianlin Posted 2010-06-05 08:27
初级用户 Posts 18 Credits 37
This post is for everyone to discuss, and everyone can express their own opinions
Floor60 huaqiaochy Posted 2010-06-05 16:03
初级用户 Posts 16 Credits 38
pause >>nul
What's the use?
Prev  1 2 3 4 5  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023