|
|
以下脚本,在显示菜单时,有时或在有些机上,看不到菜单。黑乎乎的。。。。问题出在哪?
cd BOOT
batch diskemu.cmd onlogo
:onlogo
transparent on
setresolution 640 480 32
timerpos 60 15
timercolor 255 @auto
forecolor 255
backcolor 0
processparam pixel 255 0 0 270 525 280
menubar 3 25
menucolor 255 0 @auto
call drawmenu
goto item1
:drawmenu
cls
print
print
print
print请选择要启动的选项:
print
print
print 1. Microsoft Windows PE
print 2. Microsoft DOS
print 3. 从硬盘启动
print 4. 从软盘启动
print 5. 重启计算机
print 6. 退出到命令行模式
print
print
print 使用 ↑ 键 ↓ 键来移动高亮显示条到所要的选项,按 Enter 键做个选择。
print 正在数秒,归零后高亮显示条所在的选项将自动启动。剩下的秒数:
return
;主按键区调用
:mainkey
onkey esc call Prompt
onkey 1 call PE
onkey 2 call DOS
onkey 3 boot 80
onkey 4 boot 0
onkey 5 reboot
onkey 6 call Prompt
return
:item1
highlight 6
getkey showtime showprocess 30 entr
onkey entr setkey 1
onkey down goto item2
onkey up goto item6
call mainkey
goto item1
:item2
highlight 7
;等待20秒,缺省按键 Enter
getkey showtime showprocess 30 entr
onkey entr setkey 2
onkey down goto item3
onkey up goto item1
call mainkey
goto item2
:item3
highlight 8
;等待20秒,缺省按键 Enter
getkey showtime showprocess 30 entr
onkey entr setkey 3
onkey down goto item4
onkey up goto item2
call mainkey
goto item3
:item4
highlight 9
;等待20秒,缺省按键 Enter
getkey showtime showprocess 30 entr
onkey entr setkey 4
onkey down goto item5
onkey up goto item3
call mainkey
goto item4
:item5
highlight 10
;等待20秒,缺省按键 Enter
getkey showtime showprocess 30 entr
onkey entr setkey 5
onkey down goto item6
onkey up goto item4
call mainkey
goto item5
:item6
highlight 11
;等待20秒,缺省按键 Enter
getkey showtime showprocess 30 entr
onkey entr setkey 6
onkey down goto item1
onkey up goto item5
call mainkey
goto item6
;执行WINPE
:PE
run winpe.bin
getkey
call drawmenu
return
:DOS
run dos.img
getkey
call drawmenu
return
;退出至命令行
:Prompt
setresolution 640 480 8
cd /
cls
quit
|
|