中国DOS联盟论坛

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-10-27 06:39
47,815 topics / 349,928 posts / today 0 new / 48,289 members
DOS启动盘 & LOGO技术 (启动盘室) » Question! How do you write a WBAT Chinese menu batch file?
Printable Version  1,592 / 5
Floor1 zzync Posted 2004-02-04 00:00
初级用户 Posts 25 Credits 193
Does any expert have any materials related to making things with WBAT!!
Floor2 LK Posted 2004-02-04 00:00
高级用户 Posts 309 Credits 915
Floor3 zzync Posted 2004-02-06 00:00
初级用户 Posts 25 Credits 193
1.XXXX
2.XXXX
3.XXXX
After confirming with the cursor and pressing Enter, what is the return code? For example, for “ 2.XXXX”, how should “ XX ” be written in if erroelevel XX goto XX
Please reply! I would be extremely grateful!!!
Floor4 LK Posted 2004-02-06 00:00
高级用户 Posts 309 Credits 915
Actually, just download a boot disk *.IMG file with a menu, open it and you'll understand. Below is a section of batch menu code I made in 1994 for reference:


ECHO. ##################################################################
ECHO. # #
ECHO. # #
ECHO. # Please choose a Wubi practice type: #
ECHO. # #
ECHO. # #
ECHO. # 1......Jishitong Wubi 4......Return to upper menu #
ECHO. # #
ECHO. # #
ECHO. # 2......Wubi Gaoshou Crash Course #
ECHO. # #
ECHO. # #
ECHO. # 3......Wubi practice tutorial #
ECHO. # #
ECHO. # #
ECHO. # #
ECHO. ##################################################################
ECHO.
ECHO.
ECHO.
ECHO.
CHOICE/C:1234 请选择一种五笔练习
IF ERRORLEVEL 4 GOTO FH
IF ERRORLEVEL 3 GOTO MLWB
IF ERRORLEVEL 2 GOTO XHWB
IF ERRORLEVEL 1 GOTO WBXX
Floor5 zzync Posted 2004-02-06 00:00
初级用户 Posts 25 Credits 193
(There is a submenu under the main menu)
The main menu is written like this
:main
call w.bat box @GHO.bat:w_main
if errorlevel 100 goto exit
if errorlevel 4 goto exit
if errorlevel 3 goto ghost
if errorlevel 2 goto rec1

How should the 5 if calls under :back1 be written???

:bak1
call w.bat box @GHO.bat:w_bak1
if XXX goto XXX
if XXX goto XXX
if XXX goto XXX
if XXX goto XXX
if XXX goto XXX

:w_main " 【Local hard disk backup and recovery disk】"

∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷
∷                       ∷
∷ ∷
∷ ∷
∷                       ∷
∷    ∷
∷                       ∷
∷    ∷
∷                       ∷
∷    ∷
∷ ∷
∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷∷
∷


:w_bak1 " 【Local backup wizard】 "
===================================================













Press the ESE key to return = main menu Note: this CD is for this machine only

=====================================================
::
Floor6 zzync Posted 2004-02-06 00:00
初级用户 Posts 25 Credits 193
This kind of menu uses keyboard cursor movement, very convenient. I downloaded it from the Internet, and I want to modify it to make the operation simpler,

so it suits my own machine better!!! Please reply!!! Thanks
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023