无忧启动论坛

 找回密码
 注册
搜索
系统gho:最纯净好用系统下载站投放广告、加入VIP会员,请联系 微信:wuyouceo
查看: 2294|回复: 2
打印 上一主题 下一主题

中文引导实例

[复制链接]
跳转到指定楼层
1#
发表于 2002-12-27 21:29:11 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
[这个贴子最后由huaqingyuan在 2002/12/29 02:47pm 编辑]

用bradyzhu的EasyBoot v3.22做6IN1,,中文引导实例


DISKEMU。CMD:
:entrypoint
delay 100ms
;显示启动画面,等待5秒。
;animatepalette 0xf0 0xff 250ms
;logo animated 5 logo08.bmp
;logo 5 logo24.bmp
:nologo
;设置背景模式
transparent off
;清屏
cls 0
;设置背景
backgroundimage pixel logo.bmp 0 0
setresolution 640 480 32
;设置调色板
setdac   0 0x00 0x00 0x00
setdac   1 0x00 0x7f 0x7f
setdac 100 0xff 0x1f 0x1f
setdac 101 0x00 0xff 0x00
setdac 102 0x00 0x00 0xff
setdac 103 0x5f 0x5f 0x5f
setdac 255 0xff 0xff 0xff
forecolor 255
backcolor   0
;进度条显示参数
processparam pixel 101 103 100 450 540 460
setdefault mainkey7
:start
cls 0
;绘制背景
repaint
;菜单背景
goto ~
:mainkey
onkey m goto prompt
onkey esc   boot 80
onkey 2   goto 02
onkey 3   goto 03
onkey 4   goto 04
onkey r   reboot
onkey 6   goto 06
onkey 7   goto 07
onkey f1  goto disclaimer
onkey f2  goto help
onkey f3  boot 0
onkey 1  goto 01
onkey 5  goto 05
onkey f5  goto standres
onkey f6  goto hires
onkey f7  goto chs
onkey f8  goto cht
onkey tab goto txtmode
;检测到的按键不是所需的,继续等待
goto ~
;
:mainkey1
repaint pixel @lastdraw @lastdraw @lastdraw @lastdraw
drawimage pixel 1.bmp 303 146
;等待20秒,缺省按键 Enter
getkey showprocess 35 entr
onkey entr setkey 1
onkey num_entr setkey 1
onkey up goto mainkey9
onkey down goto mainkey2
setdefault mainkey1
goto mainkey
;
:mainkey2
repaint pixel @lastdraw @lastdraw @lastdraw @lastdraw
drawimage pixel 2.bmp 303 175
;等待20秒,缺省按键 Enter
getkey showprocess 35 entr
onkey entr setkey 2
onkey num_entr setkey 2
onkey up goto mainkey1
onkey down goto mainkey3
setdefault mainkey2
goto mainkey
;
:mainkey3
repaint pixel @lastdraw @lastdraw @lastdraw @lastdraw
drawimage pixel 3.bmp 303 202
;等待20秒,缺省按键 Enter
getkey showprocess 35 entr
onkey entr setkey 3
onkey num_entr setkey 3
onkey up goto mainkey2
onkey down goto mainkey4
setdefault mainkey3
goto mainkey
;
:mainkey4
repaint pixel @lastdraw @lastdraw @lastdraw @lastdraw
drawimage pixel 4.bmp 303 231
;等待20秒,缺省按键 Enter
getkey showprocess 35 entr
onkey entr setkey 4
onkey num_entr setkey 4
onkey up goto mainkey3
onkey down goto mainkey5
setdefault mainkey4
goto mainkey
;
:mainkey5
repaint pixel @lastdraw @lastdraw @lastdraw @lastdraw
drawimage pixel 5.bmp 303 258
;等待20秒,缺省按键 Enter
getkey showprocess 35 entr
onkey entr setkey 5
onkey num_entr setkey 5
onkey up goto mainkey4
onkey down goto mainkey6
setdefault mainkey5
goto mainkey
;
:mainkey6
repaint pixel @lastdraw @lastdraw @lastdraw @lastdraw
drawimage pixel 6.bmp 303 287
;等待20秒,缺省按键 Enter
getkey showprocess 35 entr
onkey entr setkey 6
onkey num_entr setkey 6
onkey up goto mainkey5
onkey down goto mainkey7
setdefault mainkey6
goto mainkey
;
:mainkey7
repaint pixel @lastdraw @lastdraw @lastdraw @lastdraw
drawimage pixel 7.bmp 303 315
;等待20秒,缺省按键 Enter
getkey showprocess 35 entr
onkey entr setkey esc
onkey num_entr setkey esc
onkey up goto mainkey6
onkey down goto mainkey8
setdefault mainkey7
goto mainkey
;
:mainkey8
repaint pixel @lastdraw @lastdraw @lastdraw @lastdraw
drawimage pixel 8.bmp 460 314
;等待20秒,缺省按键 Enter
getkey showprocess 35 entr
onkey entr setkey f3
onkey num_entr setkey f3
onkey up goto mainkey7
onkey down goto mainkey9
setdefault mainkey8
goto mainkey
;
:mainkey9
repaint pixel @lastdraw @lastdraw @lastdraw @lastdraw
drawimage pixel 9.bmp 38 337
;等待20秒,缺省按键 Enter
getkey showprocess 35 entr
onkey entr setkey f1
onkey num_entr setkey f1
onkey up goto mainkey8
onkey down goto mainkey1
setdefault mainkey9
goto mainkey
;
:disclaimer
; 显示公司简介
cls
print
print
print
print      华清电脑公司简介:
print
print          华清电脑公司是一家综合性的电脑技术服务公司。主要业务如下:
print
print          1.销售各种全新电脑、二手电脑,及其零配件。
print
print          2.无盘、有盘网络的设计组建,老机房改造。
print
print          3.电脑及其零配件维修、维护。硬盘数据恢复、系统备份。BIOS的升级、
print            个性化BIOS
print
print          4.数据光盘刻录。
print
print          5.电脑培训。
print
print          6.打字复印,设计各种名片、请柬。
print
print          华清电脑公司以优质的服务热忱欢迎新老客户的光临!!
print
print          联系电话:
print          E-mail:huaqingyuan@sina.con,huaqingyuan@21cn.com
print          地址:荆门屈家岭管理区(五三农场)二门诊斜对面
print
print      按任意键返回主菜单
print
print
getkey
goto start
;
:help
; 显示帮助
cls
print
print
print
print      Windows 2000 专业版
print              PQHKR-G4JFW-VTY3P-G4WQ2-88CTW
print
print      Windows 2000 服务器版
print              H6TWQ-TQQM8-HXJYG-D69F7-R84VM
print
print      Windows 2000 高级服务器版
print              RBDC9-VTRC8-D7972-J97JY-PRVMG
print
print      Windows 98 第二版。
print              QY7TT-VJ7VG-7QPHY-QXHD3-B838Q
print
print      Windows NT 4.0 工作站版 (OEM)
print              00100-OEM-0123456-00100
print
print      Windows NT 4.0 服务器版
print              111-1111111
print
print
print
print
print      按任意键返回主菜单
print
print
print
print
getkey
goto start
;
;退出至命令行模式
:prompt
setdac 255 255 255 255
setdac   0   0   0   0
forecolor 255
backcolor 0
cd /
cls
quit
;
:01
cd /boot
run WPROSECT.DAT
getkey
goto start
;
:02
cd /boot
run WSRVSECT.DAT
getkey
goto start
;
:03
cd /boot
run ASRVSECT.DAT
getkey
goto star
;
:04
cd /boot
run WIN98.IMG
getkey
goto star
;
:05
cd /boot
run NTWKSECT.DAT
getkey
goto star
;
:06
cd /boot
run NSRVSECT.DAT
getkey
goto star
;
:07
cd /boot
run OOBCSECT.DAT
getkey
goto star
;
:standres
setresolution 640 480 16
goto start
;
:hires
setresolution 640 480 32
goto start
;
:chs
loadchinesefont 0xa0 0xa0 94 95 Hzk16
goto start
;
:cht
loadchinesefont 0xa0 0xa0 94 95 Hzk16f
goto start
;
:txtmode
cd /boot
batch diskemb.cmd
cd /boot
goto start
;
2#
 楼主| 发表于 2002-12-27 21:39:30 | 只看该作者

中文引导实例

DISKEMU:

:entrypoint
delay 250ms
:nologo
;设置背景模式
transparent on
;设置显示模式
setresolution 640 480 8
setdac 255 255 255 255
setdac   0   0   0   0
forecolor 255
backcolor 0
setdefault mainkey8
menubar 8 46
menucolor 255 0
timerpos 28 25
:start
;清屏
cls
;显示主菜单
print
print
print          ========================================
print                      华 清 电 脑 科 技
print          ========================================
print
print          1. 安装 Windows 2000 专业版 SP3
print
print          2. 安装 Windows 2000 服务器版 SP3
print
print          3. 安装 Windows 2000 高级服务器版 SP3
print
print          4. 安装 Windows 98 第二版
print
print          5. 安装 Windows NT 4.0 工作站版 (OEM)
print
print          6. 安装 Windows NT 4.0 服务器版
print
print          7. 从软盘启动
print
print          8. 从硬盘启动
print
print         ++++++++++++++++++++++++++++++++++++++++++
print            F1) 公司简介          F2) 安装密码
print         ++++++++++++++++++++++++++++++++++++++++++
print            等待20秒    还剩    秒
print
print            请输入您的选择:
print
goto ~
;
:mainkey
onkey m goto prompt
onkey esc boot 80
onkey 8 boot 80
onkey 2 goto 02
onkey 3 goto 03
onkey 4 goto 04
onkey r reboot
onkey 6 goto 06
onkey 7 boot 0
onkey f1 goto disclaimer
onkey f2 goto help
onkey f3 boot 0
onkey f4 goto txt
;部分未列工具可用F4查看相应按键
onkey f5  goto standres
onkey f6  goto hires
onkey f7  goto chs
onkey f8  goto cht
onkey 1 goto 01
onkey 5 goto 05
;部分未列工具
onkey a goto OOBCSECT
onkey b goto RECOSECT
onkey c goto 1514
onkey d goto maxtor
onkey e goto Ghost
onkey f goto NBOOT2
onkey g goto me
onkey h goto xp1
onkey i goto DUBA2003
onkey tab goto txtmode
;检测到的按键不是所需的,继续等待
goto start
;
:mainkey1
highlight 6
;等待20秒,缺省按键 Enter
getkey showtime 20 entr
highlight
onkey entr setkey 1
onkey up goto mainkey8
onkey down goto mainkey2
setdefault mainkey1
goto mainkey
;
:mainkey2
highlight 8
;等待20秒,缺省按键 Enter
getkey showtime 20 entr
highlight
onkey entr setkey 2
onkey up goto mainkey1
onkey down goto mainkey3
setdefault mainkey2
goto mainkey
;
:mainkey3
highlight 10
;等待20秒,缺省按键 Enter
getkey showtime 20 entr
highlight
onkey entr setkey 3
onkey up goto mainkey2
onkey down goto mainkey4
setdefault mainkey3
goto mainkey
;
:mainkey4
highlight 12
;等待20秒,缺省按键 Enter
getkey showtime 20 entr
highlight
onkey entr setkey 4
onkey up goto mainkey3
onkey down goto mainkey5
setdefault mainkey4
goto mainkey
;
:mainkey5
highlight 14
;等待20秒,缺省按键 Enter
getkey showtime 20 entr
highlight
onkey entr setkey 5
onkey up goto mainkey4
onkey down goto mainkey6
setdefault mainkey5
goto mainkey
;
:mainkey6
highlight 16
;等待20秒,缺省按键 Enter
getkey showtime 20 entr
highlight
onkey entr setkey 6
onkey up goto mainkey5
onkey down goto mainkey7
setdefault mainkey6
goto mainkey
;
:mainkey7
highlight 18
;等待20秒,缺省按键 Enter
getkey showtime 20 entr
highlight
onkey entr setkey 7
onkey up goto mainkey6
onkey down goto mainkey8
setdefault mainkey7
goto mainkey
;
:mainkey8
highlight 20
;等待20秒,缺省按键 Enter
getkey showtime 20 entr
highlight
onkey entr setkey 8
onkey up goto mainkey7
onkey down goto mainkey1
setdefault mainkey8
goto mainkey
;
:disclaimer
; 显示公司简介
cls
print
print
print
print
print      华清电脑公司简介:
print
print          华清电脑公司是一家综合性的电脑技术服务公司。主要业务如下:
print
print          1.销售各种全新电脑、二手电脑,及其零配件。
print
print          2.无盘、有盘网络的设计组建,老机房改造。
print
print          3.电脑及其零配件维修、维护。硬盘数据恢复、系统备份。BIOS的升级、
print            个性化BIOS
print
print          4.数据光盘刻录。
print
print          5.电脑培训。
print
print          6.打字复印,设计各种名片、请柬。
print
print          华清电脑公司以优质的服务热忱欢迎新老客户的光临!!
print
print          联系电话:
print          E-mail:huaqingyuan@sina.con,huaqingyuan@21cn.com
print
print      按任意键返回主菜单
print
print
getkey
goto start
;
:help
; 显示帮助
cls
print
print
print
print      Windows 2000 专业版
print              PQHKR-G4JFW-VTY3P-G4WQ2-88CTW
print
print      Windows 2000 服务器版
print              H6TWQ-TQQM8-HXJYG-D69F7-R84VM
print
print      Windows 2000 高级服务器版
print              RBDC9-VTRC8-D7972-J97JY-PRVMG
print
print      Windows 98 第二版。
print              QY7TT-VJ7VG-7QPHY-QXHD3-B838Q
print
print      Windows NT 4.0 工作站版 (OEM)
print              00100-OEM-0123456-00100
print
print      Windows NT 4.0 服务器版
print              111-1111111
print
print
print
print
print      按任意键返回主菜单
print
print
print
print
getkey
goto start
;
:txt
cls
print
print
print        onkey m goto prompt
print        onkey esc boot 80
print        onkey 8 boot 80
print        onkey r reboot
print        onkey f1 goto disclaimer
print        onkey f2 goto help
print        onkey f3 boot 0
print        onkey f4 goto txt
print        onkey f5  goto standres
print        onkey f6  goto hires
print        onkey f7  goto chs
print        onkey f8  goto cht
print        onkey a goto OOBCSECT
print        onkey b goto RECOSECT
print        onkey c goto 1514
print        onkey d goto maxtor
print        onkey e goto Ghost
print        onkey f goto NBOOT2
print        onkey g goto me
print        onkey h goto xp1
print        onkey i goto DUBA2003
getkey
goto start
;
;退出至命令行模式
:prompt
setdac 255 255 255 255
setdac   0   0   0   0
forecolor 255
backcolor 0
cd /
cls
quit
;
:01
cd /boot
run WPROSECT.DAT
getkey
goto start
;
:02
cd /boot
run WSRVSECT.DAT
getkey
goto start
;
:03
cd /boot
run ASRVSECT.DAT
getkey
goto star
;
:04
cd /boot
run WIN98.IMG
getkey
goto star
;
:05
cd /boot
run NTWKSECT.DAT
getkey
goto star
;
:06
cd /boot
run NSRVSECT.DAT
getkey
goto star
;
:OOBCSECT
cd /boot
run OOBCSECT.DAT
getkey
goto star
;
:txtmode
cd /boot
run diskemu.bin
cd /boot
goto start
;
:standres
setresolution 640 480 8
goto start
;
:hires
setresolution 800 600 8
goto start
;
:chs
loadchinesefont 0xa0 0xa0 94 95 Hzk16
goto start
;
:cht
loadchinesefont 0xa0 0xa0 94 95 Hzk16f
goto start
;
:RECOSECT
cd /boot
run RECOSECT.bin
getkey
goto star
;
:1514
cd /boot
run 1514.img
getkey
goto star
;
:Ghost
cd /boot
run Ghost.ima
getkey
goto star
;
:maxtor
cd /boot
run maxtor.img
getkey
goto star
;
:NBOOT2
cd /boot
run NBOOT2.img
getkey
goto star
;
:me
cd /boot
run me.VFD
getkey
goto star
;
:xp1
cd /boot
run xp1.VFD
getkey
goto star
;
:DUBA2003
cd /boot
run DUBA2003.VFD
getkey
goto star
;

回复

使用道具 举报

3#
发表于 2002-12-28 11:11:57 | 只看该作者

中文引导实例

做得不错,~~
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|捐助支持|无忧启动 ( 闽ICP备05002490号-1 )

闽公网安备 35020302032614号

GMT+8, 2025-5-11 15:32

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表