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-07-24 02:27
中国DOS联盟论坛 » DOS启动盘 & LOGO技术 (启动盘室) » Question! How do you write a WBAT Chinese menu batch file? View 1,432 Replies 5
Original Poster Posted 2004-02-04 00:00 ·  中国 江西 南昌 电信
初级用户
Credits 193
Posts 25
Joined 2004-02-03 00:00
22-year member
UID 16634
Gender Male
Status Offline
Does any expert have any materials related to making things with WBAT!!
Floor 2 Posted 2004-02-04 00:00 ·  中国 广西 柳州 电信
高级用户
★★★
Credits 915
Posts 309
Joined 2002-12-22 00:00
23-year member
UID 567
Gender Male
Status Offline
Floor 3 Posted 2004-02-06 00:00 ·  中国 江西 南昌 电信
初级用户
Credits 193
Posts 25
Joined 2004-02-03 00:00
22-year member
UID 16634
Gender Male
Status Offline
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!!!
Floor 4 Posted 2004-02-06 00:00 ·  中国 广西 柳州 电信
高级用户
★★★
Credits 915
Posts 309
Joined 2002-12-22 00:00
23-year member
UID 567
Gender Male
Status Offline
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
Floor 5 Posted 2004-02-06 00:00 ·  中国 江西 南昌 电信
初级用户
Credits 193
Posts 25
Joined 2004-02-03 00:00
22-year member
UID 16634
Gender Male
Status Offline
(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

=====================================================
::
Floor 6 Posted 2004-02-06 00:00 ·  中国 江西 南昌 电信
初级用户
Credits 193
Posts 25
Joined 2004-02-03 00:00
22-year member
UID 16634
Gender Male
Status Offline
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
Forum Jump: