:start
cls
print 1
print 以我无限热情 传承“自由”文明 版权没有!拷贝自由! 2002年6月1日
print
print
print 万 能 中 文 启 动 盘
print
print 1. 硬盘启动 (默认10秒)
print
print 2. 光 盘 启 动
print
print 3. 启 动 纯 DOS
print
print 4. O&O BlueCon 2000
print
print 5. O&O BlueCon winxp
print
print R. 重 新 启 动
print
print A. 软 驱 启 动
print
print H. 帮 助 说 明
print
print 硬盘启动:
print
print 请按热键(1-5,R,A,H)或光标键(↑和↓)选择 回车键(Enter)确认
;
:menu0
print 1
goto pass1
;
:pass1
print 2
getkey 2 0xFFFF
onkey up goto passup
onkey down goto passdown
onkey entr boot 80
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
onkey 0xFFFF goto pass2
goto passb
;
:pass2
print 3
getkey 2 0xFFFF
onkey up goto passup
onkey down goto passdown
onkey entr boot 80
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
onkey 0xFFFF goto pass3
goto passb
;
:pass3
print 4
getkey 2 0xFFFF
onkey up goto passup
onkey down goto passdown
onkey entr boot 80
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
onkey 0xFFFF goto pass4
goto passb
;
:pass4
print 5
getkey 2 0xFFFF
onkey up goto passup
onkey down goto passdown
onkey entr boot 80
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
onkey 0xFFFF goto pass5
goto passb
;
:pass5
print 6
getkey 1 0xFFFF
onkey up goto passup
onkey down goto passdown
onkey entr boot 80
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
onkey 0xFFFF boot 80
goto passb
;
;
;
;
;
;
;
;
:passb
goto menu1
;
:passdown
goto menu1
;
:passup
goto menuh
;;
;
;
;
;
;
;
;
:menu1
print 8
getkey
onkey up goto menuh
onkey down goto menu2
onkey entr boot 80
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
goto menu1
;
:menu2
print 9
getkey
onkey up goto menu1
onkey down goto menu3
onkey entr goto cdrom
onkey 1 boot 80
onkey 2 goto cdrom
onkey 4 goto oobc
onkey 5 goto ooxp
onkey 3 goto dos98
onkey r reboot
onkey a goto run1
onkey h goto help
goto menu2
;
:menu3
print a
getkey
onkey up goto menu2
onkey down goto menu4
onkey entr goto dos98
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
goto menu3
;
:menu4
print b
getkey
onkey up goto menu3
onkey down goto menu5
onkey entr goto oobc
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
goto menu4
;
:menu5
print c
getkey
onkey up goto menu4
onkey down goto menur
onkey entr goto ooxp
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
goto menu5
;
:menur
print d
getkey
onkey up goto menu5
onkey down goto menua
onkey entr reboot
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
goto menur
;
:menua
print e
getkey
onkey up goto menur
onkey down goto menuh
onkey entr goto run1
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
goto menua
;
:menuh
print f
getkey
onkey up goto menua
onkey down goto menu1
onkey entr goto help
onkey 1 boot 80
onkey 2 goto cdrom
onkey 3 goto dos98
onkey 4 goto oobc
onkey 5 goto ooxp
onkey r reboot
onkey a goto run1
onkey h goto help
goto menuh
;
:cdrom
cls
cd image
run cdrom.img
getkey
cls
goto start
;
:dos98
cls
cd image
run dos98.img
getkey
cls
goto start
;
:OOBC
print Starting O&O BlueCon 2000 NT4
cd image
run OOBCSECT.DAT
getkey
goto start
;
:OOxp
print Starting O&O BlueCon xp
cd image
run OOxpSECT.DAT
getkey
goto start
;
:run1
cls
boot 0
getkey
cls
goto start
;
:help
cls
run dskemu1.bin
getkey
cls
goto start
;EOF 作者: flnetwdf 时间: 2002-6-20 08:56 标题: 從頭問起,用mkcmenu怎麽寫? 你的 E-MAIL贴出来给你一个教程作者: 江湖小虾米 时间: 2002-6-20 08:57 标题: 從頭問起,用mkcmenu怎麽寫? 这是我的DSKEMU1.TXT
:start
cls
print 1
print
print
print
print 光 盘 简 要 说 明
print
print
print
print 本光盘为启动光盘,请按热键选择。光盘下
print
print 运行“README.EXE”文件为光盘内程序简要说明,
print
print 在WINDOWS下会自动运行。如有疑问请联系:
print
print
print 电 话:0448-7339517
print 手 机:13843556517
print Email:liangang_cn@msn.com
print 银河网络 廉刚软体工作室荣誉出品
print
print
print 请按空格键返回... ...
print
;
:menu0
getkey
onkey spc goto run
goto menu0
;
:run
cls
run dskemu0.bin
;EOF 作者: rolan 时间: 2002-6-20 08:59 标题: 從頭問起,用mkcmenu怎麽寫? 謝謝各位,rolan@263.net作者: rolan 时间: 2002-6-20 09:00 标题: 從頭問起,用mkcmenu怎麽寫? 小蝦米,可不可以給點註釋呀。作者: 江湖小虾米 时间: 2002-6-20 09:03 标题: 從頭問起,用mkcmenu怎麽寫? 可以,给你一个贴图作者: rolan 时间: 2002-6-20 09:12 标题: 從頭問起,用mkcmenu怎麽寫? 在哪呀?作者: 江湖小虾米 时间: 2002-6-20 09:13 标题: 從頭問起,用mkcmenu怎麽寫? [UploadFile=2_4206_8.jpg]这是刚刚抓的图作者: 江湖小虾米 时间: 2002-6-20 09:14 标题: 從頭問起,用mkcmenu怎麽寫? 再仔细看看DSKEMU0.TXT 就知道了作者: rolan 时间: 2002-6-20 09:16 标题: 從頭問起,用mkcmenu怎麽寫? 謝謝,但我想要得是DSKEM00.txt裏的程序註釋。作者: 江湖小虾米 时间: 2002-6-20 09:24 标题: 從頭問起,用mkcmenu怎麽寫? 一般可以看明白的呀?!作者: rolan 时间: 2002-6-20 09:50 标题: 從頭問起,用mkcmenu怎麽寫? print 1
print 2
print 3等等起什麽作用。作者: rolan 时间: 2002-6-20 09:52 标题: 從頭問起,用mkcmenu怎麽寫? getkey 2 0xFFFF
這又有什麽作用呢?作者: WANGZAI 时间: 2002-6-20 10:48 标题: 從頭問起,用mkcmenu怎麽寫? 好象刻在光盘上做启动盘中文字符显示有问题的!作者: rolan 时间: 2002-6-20 11:24 标题: 從頭問起,用mkcmenu怎麽寫? 真的嗎?作者: kicker 时间: 2002-6-20 11:47 标题: 從頭問起,用mkcmenu怎麽寫? 能给我个教程吗?puqing@etang.com作者: rolan 时间: 2002-6-20 12:02 标题: 從頭問起,用mkcmenu怎麽寫? 等我搞懂了就發給你。作者: flnetwdf 时间: 2002-6-20 15:32 标题: 從頭問起,用mkcmenu怎麽寫? print 1
print 2
...
是指显示光条的位置作者: rolan 时间: 2002-6-20 16:18 标题: 從頭問起,用mkcmenu怎麽寫? 那getkey 2 0xFFFF又是什麽意思?作者: cctrv 时间: 2002-6-20 19:44 标题: 從頭問起,用mkcmenu怎麽寫? 是等两秒钟就自动...作者: 江湖小虾米 时间: 2002-6-21 08:05 标题: 從頭問起,用mkcmenu怎麽寫? 那是时间进程条的设置,cctrv说的很对,因为我启动面下面有一个进程条作者: rolan 时间: 2002-6-21 08:38 标题: 從頭問起,用mkcmenu怎麽寫? 我是指0xFFFF代表什麽?作者: wzh99 时间: 2002-6-21 11:17 标题: 從頭問起,用mkcmenu怎麽寫? Diskem1x commands
All supported diskem1x command are listed below, click on it for more information.
/* todo: check commands and add more examples */
batch
boot
bootinfotable
cd
cls
dir
echo
emusegm
getkey
goto
help
keyval
loadsegm
onkey
print
quit
readtest
reboot
run
test
type
ver
[ Top ]
batch
Syntax: batch <filename> [<label>]
Run commands in batchfile <filename> starting at <label>
Labels are defined as ":Label"
Comment lines start with a ";"
Example:
Lets assume you have this file called "DE.CMD":
; de.cmd example file
print 123
:four
print 456
; eof de.cmd
The command "batch de.cmd" would return: 123
456
The command "batch de.cmd four" would return: 456
[ Top ]
boot
Syntax: boot <#drvnum>
Boot from drive number <#drvnum> (in hex)
Example:
Command Description
boot 0 Boot from drive 0 (A:)
boot 80 Boot from harddisk (C:)
[ Top ]
bootinfotable
Syntax: bootinfotable
Modify the boot file by inserting a 56-byte "boot information table" at offset 8 in the file. The same ways as mkisofs does, see mkisofs manpage for more info. Only for "no-emulation" images.
Information table:
Offset Size Meaning
8 4 bytes LBA of primary volume descriptor
12 4 bytes LBA of boot file
16 4 bytes Boot file length in bytes
20 4 bytes 32-bit checksum
24 40 bytes Reserved
[ Top ]
cd
Syntax: cd <path>
Changes the current directory to .
Example:
Command Description
cd bin Goes to the "bin" directory
cd \ Goes back to the root directory
[ Top ]
cls
Syntax: cls (or clear)
Clears the screen and homes the cursor.
[ Top ]
dir
Syntax: dir (or ls)
Displays a list of files and subdirectories in a directory
[ Top ]
echo
Syntax: echo [on/off]
Turn command echoing on/off
[ Top ]
emusegm
Syntax: emusegm <xxxx>
Set the location for the emulator to <xxxx> (hex)
Example:
Command Description
Emusegm 8500 Emulator goes at 8500h:0000h
[ Top ]
getkey
Syntax: getkey [<timeout> <key>]
Wait until a key is pressed. When <timeout> seconds have passed and no key was pressed, the key is returned by getkey command.
Possible values for <key> are:
single character ascii values, like: a, 1 or !
Key "tags": tag key
esc escape
bs backspace
tab tab
entr Enter
spc spacebar
home home
up cursor up
left cursor left
pgup page up
right cursor right
end end
down cursor down
pgdn page down
ins insert
del delete
f1 f1
f2 f2
f3 f3
f4 f4
f5 f5
f6 f6
f7 f7
f8 f8
f9 f9
f10 f10
f11 f11
f12 f12
sf1 shift f1
sf2 shift f2
sf3 shift f3
sf4 shift f4
sf5 shift f5
sf6 shift f6
sf7 shift f7
sf8 shift f8
sf9 shift f9
sf10 shift f10
sf11 shift f11
sf12 shift f12
af1 alt f1
af2 alt f2
af3 alt f3
af4 alt f4
af5 alt f5
af6 alt f6
af7 alt f7
af8 alt f8
af9 alt f9
af10 alt f10
af11 alt f11
af12 alt f12
custom keyvalue (16-bit) in hex (scancode/ascii), like: 0x011b
Example:
Command Description
getkey 10 esc 10 sec. timeout with Escape key
getkey wait for keypress
[ Top ]
goto
Syntax: goto <label>
Lets assume you have this file called "DE.CMD":
; de.cmd example file
:start
print 123
goto start
This batch file would loop forever (useless example!)
[ Top ]
help
Syntax: help <command> (or ?)
Displays help about <command>
[ Top ]
keyval
Syntax: keyval
Prints the (hex) value of the last getkey
[ Top ]
loadsegm
Syntax: loadsegm <xxxx>
Set the load segment to <xxxx> (hex)
Example:
Command Description
loadsegm 2000 Load the image at 2000h:0000h
[ Top ]
onkey
Syntax: onkey <key> <command>
Checks if <key> has been pressed. If so <command> is executed.
[ Top ]
print
Syntax: print <message>
Prints the string <message> to the screen at current cursor position.
Example:
Command Description
print Testing Prints "Testing" to the screen
print Prints a "blank" line
[ Top ]
quit
Syntax: quit
When in a batchfile, stops batch processing.
[ Top ]
readtest
Syntax: readtest
Tests the CD by reading all blocks in the volume
[ Top ]
reboot
Syntax: reboot
Reboots the system (warmboot)
[ Top ]
run
Syntax: run <file>
Runs (emulates) an image.
Example:
Command Description
run elboot.img Emulates a floppy image and boot it
run w2ksect.dat Load "w2ksect.dat" and run it
[ Top ]
test
Syntax: test
This command is for development only
It is used for testing new commands...
Do not use it!
[ Top ]
type
Syntax: type (or cat) <file>
Displays the contents of text files.
Example:
Command Description
type readme.txt Displays the content of readme.txt file
[ Top ]
ver
Syntax: ver
Displays the diskem1x.bin version
[ Top ]作者: bongarcon 时间: 2002-6-21 12:40 标题: 從頭問起,用mkcmenu怎麽寫? custom keyvalue (16-bit) in hex (scancode/ascii), like: 0x011b
怎么知道哪个键对应哪个hex值呢?
还有,上下箭头怎么打出来的?作者: wzh99 时间: 2002-6-21 17:39 标题: 從頭問起,用mkcmenu怎麽寫? ascii的hex值以前在论坛上贴出来过的,要是找不到用google搜索一下看。
上下箭头,本身是扩展ascii码的一部分,如果写在diskemu0.txt里面会被mkcmenu.exe当成汉字,只能在diskemu0.cmd里面修改。
建议算好位置,先用某个符号,如AAAA在diskemu0.txt里面填充,然后用磁盘编辑程序替换diskemu0.cmd里的AAAA。作者: ftcool 时间: 2002-6-22 21:04 标题: 從頭問起,用mkcmenu怎麽寫? 不错!!!作者: lin123ds 时间: 2002-11-26 15:03 标题: 從頭問起,用mkcmenu怎麽寫? 我是新手,可不可以给我几个例子,最好加上注释,谢谢,我的E是:lin1234ds@163.com作者: 秋生 时间: 2002-11-26 20:49 标题: 從頭問起,用mkcmenu怎麽寫? 老兄,能不能给个中文的?