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-08-01 10:17
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Help] Problems Encountered in DOS Batch Processing View 4,080 Replies 4
Original Poster Posted 2003-03-14 00:00 ·  中国 福建 泉州 电信
银牌会员
★★★
Credits 1,276
Posts 469
Joined 2002-12-23 13:00
23-year member
UID 586
Gender Male
From 福建泉州
Status Offline
In DOS batch processing, is there a command to forcibly exit the batch processing?

For example, I have a batch processing.

AUTOEXEC.BAT
@ECHO OFF
CALL AU.BAT
ECHO LLLLLLL
ECHO LLLLLLLLL

AU.BAT
....
....
;If I want to directly return to the DOS state at this place, how to do it, that is, not execute the following commands and not return to all commands below CALL AU.BAT in AUTOEXEC.BAT.
ECHO ASDFSDAFSDF
ECHO ASDFSDAFSADF
QQ:366840202
http://chenall.net
Floor 2 Posted 2003-03-14 00:00 ·  加拿大 安大略省 多伦多
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Try:END is a label in BASIC-like languages, indicating the position to jump to when the GOTO statement is executed. In the code you provided, "GOTO END" means jumping to the code block labeled ":END".
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 3 Posted 2003-03-15 00:00 ·  中国 福建 泉州 电信
银牌会员
★★★
Credits 1,276
Posts 469
Joined 2002-12-23 13:00
23-year member
UID 586
Gender Male
From 福建泉州
Status Offline
AUTOEXEC.BAT
@ECHO OFF
CALL AU.BAT
ECHO LLLLLLL
ECHO LLLLLLLLL

AU.BAT
....
....
GOTO END
...
...
END
I used this before, but it will return to AUTOEXEC.BAT and continue running the commands after CALL AU.BAT
QQ:366840202
http://chenall.net
Floor 4 Posted 2003-03-15 00:00 ·  加拿大 安大略省 多伦多
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
You should put "GOTO END" before "CALL AU.BAT"
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 5 Posted 2003-03-19 00:00 ·  中国 福建 泉州 电信
银牌会员
★★★
Credits 1,276
Posts 469
Joined 2002-12-23 13:00
23-year member
UID 586
Gender Male
From 福建泉州
Status Offline
Try it.
QQ:366840202
http://chenall.net
Forum Jump: