![]() |
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-09 10:29 |
47,811 topics / 349,895 posts / today 0 new / 48,253 members |
| DOS批处理 & 脚本技术(批处理室) » [Help] Please take a look at this batch file jump error |
| Printable Version 527 / 1 |
| Floor1 yuwujin | Posted 2008-08-09 22:00 |
| 初级用户 Posts 16 Credits 26 | |
|
@echo off
color 0b title Hehe :menu cls echo ============================================================================== Set /p in= Please enter: If "%in%"=="" goto menu If "%in%"=="1" Goto ki If "%in%"=="2" Goto do If "%in%"=="3" Goto st If "%in%"=="4" Goto cl If "%in%"=="0" Exit :ki Set /p inki= Execute code: If "%inki%"=="" goto exit If "%inki%"=="kdl" Goto kdl :kdl echo Executed successfully pause>nul goto menu Question: when I enter other characters for "Execute code", why does it always jump to execute :kdl? What I need is for it to exit when something else is entered. Please help. [ Last edited by yuwujin on 2008-8-9 at 10:02 PM ] |
|
| Floor2 haiou327 | Posted 2008-08-10 00:03 |
| 高级用户 Posts 348 Credits 713 | |
|
[ Last edited by haiou327 on 2008-8-10 at 12:04 AM ] |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |