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-09-23 13:39
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Recommendation] Teaching of Batch Processing View 80,791 Replies 303
Floor 91 Posted 2006-11-04 04:20 ·  中国 广东 深圳 龙岗区 电信
新手上路
Credits 12
Posts 6
Joined 2006-03-29 16:03
20-year member
UID 52996
Status Offline
Too simple, I basically understand it all. Personally, I think it's not useful.
Floor 92 Posted 2006-11-12 05:51 ·  中国 天津 电信
新手上路
晓枫
Credits 15
Posts 8
Joined 2006-11-12 05:12
19-year member
UID 70294
Gender Male
Status Offline
Thank you, very useful~!~!
Floor 93 Posted 2006-11-15 13:04 ·  中国 湖北 鄂州 电信
新手上路
Credits 3
Posts 2
Joined 2006-11-06 01:30
19-year member
UID 69727
Gender Male
Status Offline
Even more basic. I've just started to get in touch with batch processing. :(
Floor 94 Posted 2006-11-16 11:20 ·  中国 广东 佛山 广东睿江科技有限公司
初级用户
Credits 52
Posts 24
Joined 2006-11-16 06:50
19-year member
UID 70653
Gender Male
Status Offline
Top the second post... has the effect of attracting medicine... thanks a lot
Floor 95 Posted 2007-02-02 03:45 ·  中国 广东 东莞 博路电信科技公司
新手上路
Credits 10
Posts 5
Joined 2007-01-23 22:52
19-year member
UID 77453
Gender Male
From 湖北
Status Offline
Learning! Thanks to the thread starter!
Floor 96 Posted 2007-02-03 02:22 ·  中国 广东 广州 电信
初级用户
Credits 102
Posts 47
Joined 2007-01-14 11:16
19-year member
UID 76491
Gender Male
Status Offline
Very worthy of learning!
Floor 97 Posted 2007-02-03 10:11 ·  中国 广东 江门 联通
新手上路
Credits 9
Posts 5
Joined 2007-02-03 09:17
19-year member
UID 78511
Gender Male
Status Offline
The first post is still understandable, but the second one isn't.
Floor 98 Posted 2007-02-05 08:00 ·  中国 吉林 四平 联通
高级用户
★★★
Credits 859
Posts 413
Joined 2006-08-14 21:55
20-year member
UID 60532
Status Offline
There are only two posts on this floor, which is still too few. I hope to add some more in the future, with explanations and examples.
Floor 99 Posted 2007-02-06 12:03 ·  中国 湖北 宜昌 电信
初级用户
Credits 58
Posts 27
Joined 2006-12-07 09:13
19-year member
UID 72817
Gender Male
Status Offline
Great, learning it now
Floor 100 Posted 2007-02-09 06:04 ·  中国 河北 保定 联通
新手上路
Credits 6
Posts 3
Joined 2007-02-09 05:04
19-year member
UID 79028
Gender Male
Status Offline
First, I'll top it and then come back to read.
Floor 101 Posted 2007-02-10 11:12 ·  中国 江西 赣州 电信
新手上路
Credits 18
Posts 10
Joined 2007-02-10 10:25
19-year member
UID 79156
Gender Male
Status Offline
Learn. . . . . .
Floor 102 Posted 2007-02-11 05:26 ·  中国 山东 滨州 博兴县 联通
新手上路
Credits 4
Posts 2
Joined 2007-02-11 03:22
19-year member
UID 79205
Gender Male
Status Offline
It would be better if it could be more detailed.
Floor 103 Posted 2007-02-16 01:19 ·  中国 安徽 马鞍山 电信
中级用户
★★
Credits 493
Posts 228
Joined 2007-02-16 00:38
19-year member
UID 79596
Gender Male
From 安徽
Status Offline

The choice command can be used to let the user enter a character to run different commands. When using it, the /c: parameter should be added. After c:, the characters that can be entered should be written without spaces in between. Its return code is 1234...

For example: choice /c:dme defrag,mem,end
Will display
defrag,mem,end?

For example, the content of test.bat is as follows:
@echo off
choice /c:dme defrag,mem,end
if errorlevel 3 goto defrag should judge the highest error code first
if errorlevel 2 goto mem
if errotlevel 1 goto end

:defrag
c:\dos\defrag
goto end

:mem
mem
goto end

:end
echo good bye


Why can't the choice command be executed under CMD on my WINXP???
Floor 104 Posted 2007-02-17 03:41 ·  中国 浙江 台州 温岭市 电信
高级用户
★★
DOS学徒
Credits 526
Posts 252
Joined 2007-02-12 05:35
19-year member
UID 79286
Gender Male
Status Offline
Let me take a look
Floor 105 Posted 2007-02-24 06:47 ·  中国 江苏 苏州 张家港市 电信
初级用户
Credits 32
Posts 16
Joined 2007-01-25 02:19
19-year member
UID 77579
Gender Male
Status Offline
There's so much to learn...
‹ Prev 1 5 6 7 8 9 21 Next ›
Forum Jump: