|
m.bat 内容如下:
-------------------------------------------------
@echo off
set tz=
:top
cls
wbat cls (blue on cyan)
wbat text 25,2 (blue on white) @a:\demo\m.bat:0
echo.|awk -f a:\dos\winx.awk -v x=25 y=2 h=1 l=79
echo.|awk -f a:\dos\winx.awk -v x=25 y=2 h=1 l=10
echo.|awk -f a:\dos\winx.awk -v x=25 y=80 h=1 l=1
choix /C:m. /m /n /s >nul
if errorlevel 2 goto end
wbat text 22,2 (blue on white) @a:\demo\m.bat:1
echo.|awk -f a:\dos\winx.awk -v x=22 y=2 h=3 l=10
set x=22
:loop1
echo.|awk -f a:\dos\winx.awk -v x=%x% y=2 h=1 l=10
echo.|awk '{print "set x="%x%+1}'>n.bat
call n.bat
if %x%*==25* goto end1
goto loop1
:end1
echo y|del n.bat >nul
set h=
set tz=
choix /C:fex /M /N /S >NUL
IF ERRORLEVEL 3 goto x
if errorlevel 2 goto e
if errorlevel 1 goto f
goto end
:f
set tz="f"
goto tz
:e
set tz="e"
goto tz
:x
set tz="x"
goto tz
:tz
wbat text 5,10 (+white on blue) @a:\demo\m.bat:tz0
wbat text 6,10 (blue on white ) @a:\demo\m.bat:tz1
echo.|awk -f a:\dos\winx.awk -v x=5 y=10 h=4 l=21
wbat text 7,23 (+red on white) "o"
echo.|awk -f a:\dos\winx.awk -v x=7 y=22 h=1 l=7
wbat text 5,30 (black on white) "x"
echo.|awk -f a:\dos\winx.awk -v x=5 y=30 h=1 l=1
choix /c:xo /m /n /s >nul
if errorlevel 1 set tzx=x
if errorlevel 2 set tzx=o
if %tzx%*==o* echo.|awk -f a:\dos\winx.awk -v x=7 y=22 h=1 l=7 ok=1
if %tzx%*==x* echo.|awk -f a:\dos\winx.awk -v x=5 y=30 h=1 l=1 ok=1
wbat text 10,10 (red on cyan) "按任意键继续"
pause>nul
if %tz%*==x.退出* goto end
set tz=
goto top
:0
(m)主菜单 按"m"键盘开始 .
:1
f.文件
e.编辑
x.退出
:tz0
通知 .
:tz1
你选择了 %tz%
o.确定
.
:1_end
:end
cls
wbat cls (blue on cyan)
set tz= |
|