作者:l0i9n8 | 时间:2006-11-27 00:36 | 标题:如何制作菜单
我有2个bat文件,都在C盘根目录下,是用来运行GHOST作备份与还原系统用的。
想在启动的时候(进入DOS)出现一个菜单来选择它们。
我应该怎样做才能实现。
作者:lianjiang2004 | 时间:2006-11-27 00:50
rem config.sys
[menu]
menuitem=dospm, Pure MS-DOS Mode
menuitem=restore,Restore
menuitem=backup,Backup
menuitem=ghost,GHOST (manu)
menudefault=dospm,20
menucolor=7,0
[dospm]
[restore]
[backup]
[ghost]
--------------------
rem autoexec.bat
@ECHO OFF
IF "%config%"=="dospm" GOTO dospm
IF "%config%"=="restore" GOTO restore
IF "%config%"=="backup" GOTO backup
IF "%config%"=="ghost" GOTO ghost
GOTO QUIT
:dospm
cls
goto quit
:restore
if exist c:\huifu.bat huifu.bat
GOTO QUIT
:backup
if exist c:\beifen.bat beifen.bat
GOTO QUIT
:ghost
ghost.exe
GOTO QUIT
:QUIT