![]() |
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-08-12 21:16 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » How can I stop it from continuing to execute? |
| Printable Version 775 / 8 |
| Floor1 电吉入侵 | Posted 2003-06-22 00:00 |
| 初级用户 Posts 377 Credits 1,480 | |
|
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.... |
|
| Floor2 ko20010214 | Posted 2003-06-23 00:00 |
| 版主 Posts 1,628 Credits 7,296 | |
|
Please post the contents of your batch file, then everyone can tell where the problem is.
|
|
| Floor3 电吉入侵 | Posted 2003-06-23 00:00 |
| 初级用户 Posts 377 Credits 1,480 | |
|
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 |
|
| Floor4 smilehu | Posted 2003-06-23 00:00 |
| 初级用户 Posts 4 Credits 115 | |
|
@ECHO OFF
LH MOUSE.COM MENU.BAT Wouldn't it be enough to just delete the last three lines!! |
|
| Floor5 电吉入侵 | Posted 2003-06-23 00:00 |
| 初级用户 Posts 377 Credits 1,480 | |
|
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?
|
|
| Floor6 ko20010214 | Posted 2003-06-23 00:00 |
| 版主 Posts 1,628 Credits 7,296 | |
|
I think if you don't use CALL, it shouldn't return. Unless, unless your menu.bat itself contains some command that returns.
|
|
| Floor7 LanE | Posted 2003-06-23 00:00 |
| 银牌会员 Posts 648 Credits 1,835 | |
|
Change it to:
@ECHO OFF LH MOUSE.COM MENU.BAT goto end F: CD\ START.BAT end: |
|
| Floor8 ko20010214 | Posted 2003-06-23 00:00 |
| 版主 Posts 1,628 Credits 7,296 | |
The following is quoted from 电吉入侵 on 2003-6-23 13:49:13: Hehe, you already said there's no way to change it, so how can others change it for you? Dizzy to death. |
|
| Floor9 电吉入侵 | Posted 2003-06-23 00:00 |
| 初级用户 Posts 377 Credits 1,480 | |
|
@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 |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |