wince启动菜单
winde启动后,会出现类似下面的启动菜单.
1.menuitem=CEPC_LOCAL, Boot CE/PC (local nk.bin)
2.menuitem=CEPC_1024, Boot CE/PC (ether via eboot.bin with /L:1024x768x8)
3.menuitem=CEPC_800, Boot CE/PC (ether via eboot.bin with /L:800x600x16)
4.menuitem=CEPC_640, Boot CE/PC (ether via eboot.bin with /L:640x480x32)
5.menuitem=CEPC_SERIAL, Boot CE/PC (serial via sboot.bin)
6.menuitem=VESATEST, Run VesaTest program and list valid display modes
7.menuitem=CLEAN, Clean Boot (no commands)\
而且会有默认的光标位置,如果每次都要选择再进入的话非常麻烦,那在哪里改动呢?
我们先从启动wince的批处理文件autoexec.bat来看,用UE打开,会找到下述代码:
if "%CONFIG%" == "CEPC_LOCAL" goto CEPC_LOCAL
if "%CONFIG%" == "CEPC_1024" goto CEPC_1024
if "%CONFIG%" == "CEPC_800" goto CEPC_800
if "%CONFIG%" == "CEPC_640" goto CEPC_640
if "%CONFIG%" == "CEPC_SERIAL" goto CEPC_SERIAL
if "%CONFIG%" == "VESATEST" goto VESATEST
if "%CONFIG%" == "CLEAN" goto CLEAN
goto之后的代码就不写了,因人而宜
单看格式,这不是跟菜单的7个选项非常类似吗?
那么CONFIG是在哪里配置的呢?于autoexec.bat在同一个目录下我们找到了config.sys,同样的UE打开,
[menu]
menuitem=CEPC_LOCAL, Boot CE/PC (local nk.bin)
menuitem=CEPC_1024, Boot CE/PC (ether via eboot.bin with /L:1024x768x8)
menuitem=CEPC_800, Boot CE/PC (ether via eboot.bin with /L:800x600x16)
menuitem=CEPC_640, Boot CE/PC (ether via eboot.bin with /L:640x480x32)
menuitem=CEPC_SERIAL, Boot CE/PC (serial via sboot.bin)
menuitem=VESATEST, Run VesaTest program and list valid display modes
menuitem=CLEAN, Clean Boot (no commands)
menudefault=CEPC_800,5
menucolor=7,1
[CEPC_LOCAL]
[CEPC_1024]
[CEPC_800]
[CEPC_640]
[CEPC_SERIAL]
[VESATEST]
[CLEAN]
[COMMON]
就是他了.[menu]下是7个选项,还有光标默认位置 menudefault=CEPC_800,5,(5表示的是等待时间),都改成适合你的就行了.
而且可以更改菜单的名称,并在autoexec.bat中做相应修改即可.