![]() |
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-09-23 13:03 |
47,812 topics / 349,917 posts / today 0 new / 48,273 members |
| DOS批处理 & 脚本技术(批处理室) » [Help] Problems Encountered in DOS Batch Processing |
| Printable Version 4,271 / 4 |
| Floor1 chenall | Posted 2003-03-14 00:00 |
| 银牌会员 Posts 469 Credits 1,276 From 福建泉州 | |
|
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 |
|
| Floor2 Wengier | Posted 2003-03-14 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
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".
|
|
| Floor3 chenall | Posted 2003-03-15 00:00 |
| 银牌会员 Posts 469 Credits 1,276 From 福建泉州 | |
|
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 |
|
| Floor4 Wengier | Posted 2003-03-15 00:00 |
| 系统支持 Posts 10,521 Credits 27,736 | |
|
You should put "GOTO END" before "CALL AU.BAT"
|
|
| Floor5 chenall | Posted 2003-03-19 00:00 |
| 银牌会员 Posts 469 Credits 1,276 From 福建泉州 | |
|
Try it.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |