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-12 20:13
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » How can I stop it from continuing to execute? View 774 Replies 8
Original Poster Posted 2003-06-22 00:00 ·  中国 广东 广州 白云区 电信
初级用户
★★★
Credits 1,480
Posts 377
Joined 2003-06-06 00:00
23-year member
UID 3875
Gender Male
Status Offline
How can I stop it from continuing to execute?
I want to jump to another batch file in the middle of a batch file. How can I make it so that after jumping there, it won't come back and execute the commands after it?
That is, the opposite of using CALL. I thought not using CALL would do it, but it doesn't....
欢迎大家访问我的主页!
精品.爱好http://iso.533.net
Floor 2 Posted 2003-06-23 00:00 ·  中国 江西 吉安 电信
版主
★★★★
Credits 7,296
Posts 1,628
Joined 2002-10-16 12:00
23-year member
UID 10
Gender Male
Status Offline
Please post the contents of your batch file, then everyone can tell where the problem is.
ko20010214
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
Floor 3 Posted 2003-06-23 00:00 ·  中国 广东 广州 荔湾区 电信
初级用户
★★★
Credits 1,480
Posts 377
Joined 2003-06-06 00:00
23-year member
UID 3875
Gender Male
Status Offline
For example:
@ECHO OFF
LH MOUSE.COM
MENU.BAT ; I want that after jumping away here, it won't execute the commands after this anymore (won't return). How do I set that?
F:
CD\
START.BAT
欢迎大家访问我的主页!
精品.爱好http://iso.533.net
Floor 4 Posted 2003-06-23 00:00 ·  中国 浙江 温州 电信
初级用户
Credits 115
Posts 4
Joined 2003-06-20 00:00
23-year member
UID 5551
Gender Male
Status Offline
@ECHO OFF
LH MOUSE.COM
MENU.BAT
Wouldn't it be enough to just delete the last three lines!!
Floor 5 Posted 2003-06-23 00:00 ·  中国 广东 广州 白云区 电信
初级用户
★★★
Credits 1,480
Posts 377
Joined 2003-06-06 00:00
23-year member
UID 3875
Gender Male
Status Offline
I mean I don't want to delete them, because it is generated automatically by a program, so there's no way to change it........... Is there any way?
欢迎大家访问我的主页!
精品.爱好http://iso.533.net
Floor 6 Posted 2003-06-23 00:00 ·  中国 江西 吉安 电信
版主
★★★★
Credits 7,296
Posts 1,628
Joined 2002-10-16 12:00
23-year member
UID 10
Gender Male
Status Offline
I think if you don't use CALL, it shouldn't return. Unless, unless your menu.bat itself contains some command that returns.
ko20010214
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
Floor 7 Posted 2003-06-23 00:00 ·  中国 安徽 滁州 天长市 电信
银牌会员
★★★
Credits 1,835
Posts 648
Joined 2002-11-08 00:00
23-year member
UID 197
Gender Male
Status Offline
Change it to:

@ECHO OFF
LH MOUSE.COM
MENU.BAT
goto end
F:
CD\
START.BAT
end:
Floor 8 Posted 2003-06-23 00:00 ·  中国 江西 吉安 电信
版主
★★★★
Credits 7,296
Posts 1,628
Joined 2002-10-16 12:00
23-year member
UID 10
Gender Male
Status Offline
The following is quoted from 电吉入侵 on 2003-6-23 13:49:13:
I mean I don't want to delete them,  because it is generated automatically by a program,  so there's no way to change it...........   Is there any way?

Hehe, you already said there's no way to change it, so how can others change it for you? Dizzy to death.
ko20010214
=================================
大功告成,打个Kiss!
ko20010214@MSN.com
神州优雅Q300C
Intel CeleronM 370处理器 | 256MbDDR内存
40G硬盘 | USB2.0 | IEEE 1394
13.3 ' WXGA 宽屏(16:10) | COMBO光驱
10/100M网卡 | 四合一读卡器
Floor 9 Posted 2003-06-23 00:00 ·  中国 广东 广州 白云区 电信
初级用户
★★★
Credits 1,480
Posts 377
Joined 2003-06-06 00:00
23-year member
UID 3875
Gender Male
Status Offline
@ECHO OFF
LH MOUSE.COM
call MENU.BAT ; I want that after jumping away here, it won't execute the commands after this anymore (won't return). How do I set that?
F:
CD\
START.BAT
Hehe, I typed it wrong. Can this be made not to return? It uses call
欢迎大家访问我的主页!
精品.爱好http://iso.533.net
Forum Jump: