Board logo

标题: 我怎么取消这个菜单? [打印本页]

作者: cnpith     时间: 2007-1-31 09:41    标题: 我怎么取消这个菜单?

1、下载了一键还原光盘版(直接导入C_PAN.GHO文件,保存,映像文件可以正常刻录)
2、我用UltraISO将EZBOOT目录下在CNMENU.EZB和GHOST83.IMG导出,用Easyboot编辑CNMENU.EZB(只修改了文本),用WinImage编辑GHOST83.IMG,分别保存!
再用UltraISO,把两个文件通过“添加文件”菜单导入,保存映像文件,用DVD光盘可以完成刻录。


已经可以光盘启动了并出现GHOST备份还原、硬盘启动、重新启动的菜单了。

我想在选择GHOST备份还原后,就开始进行还原工作,不再出现备份、还原、Ghost8.3...的这个菜单,应该修改什么文件?

那位高人使用过指点一下。。。;)


CNMENU.EZB文件把“GHOST8.3 备份恢复”修改为"一键还原",如下图:


我把GHOST83.IMG文件里的AUTOEXEC.BAT提取出来(不知道有用没用?)

  Quote:
@ECHO OFF
REM
REM 1KEY GHOST v2006.03.12
REM http://doshome.com
REM
SET DIRCMD=/O:N
cls
xmsdsk 12000 x: /y >nul
copy command.com x:\ >nul
path=x:\
set comspec=x:\command.com
set ghox=ghos

:ERROR
IF EXIST tools.ex_ GOTO EXT
echo ERROR: tools.ex_ not found.
echo SORRY: Be will not use the disk.
echo.
GOTO QUIT

:EXT
cls
echo Preparing to start your computer.
echo This may take a few minutes. Please wait...
vol >x:\vol.txt
copy tools.ex_ x:\tools.arj >nul
copy arj.exe x:\ >nul
x:
cd\
arj x -y tools.arj >nul
del tools.arj >nul
doskey >nul
Shsucdx /D:IDE-CD /QQ
findcd /s >nul
cls
usb-hdd.bat

:QUIT

[ Last edited by cnpith on 2007-1-30 at 08:42 PM ]
作者: terse     时间: 2007-1-31 10:38
我估计在arj.exe里
打开arj.exe文件进行修改
看里面的BAT文件

[ Last edited by terse on 2007-1-31 at 11:06 AM ]
作者: lianjiang2004     时间: 2007-1-31 10:43
你把里面的批处理看懂了,你就会改了。
作者: qingfushuan     时间: 2007-2-1 01:06    标题: 估计

请问3楼的:   vol >x:\vol.txt   ---是什么意思,我就这句没看懂了

[ Last edited by qingfushuan on 2007-1-31 at 02:43 PM ]
作者: lianjiang2004     时间: 2007-2-1 03:30
运行vol,结果输出到vol.txt文件。
作者: pygajzlh     时间: 2007-2-1 11:26
请问五楼的,>nul是什么意思?
作者: pygajzlh     时间: 2007-2-1 11:28
再请教五楼的,怎么做才能让启动盘像XP的安装盘一样,五秒不动就从硬盘启动,按任意键就从光盘启动?谢谢!
作者: cnpith     时间: 2007-2-1 12:13


  Quote:
Originally posted by pygajzlh at 2007-1-31 10:26 PM:
请问五楼的,>nul是什么意思?

将命令执行的结果输出到nul空设备 即不显示结果(于显示器上)
作者: cnpith     时间: 2007-2-1 12:18


  Quote:
Originally posted by lianjiang2004 at 2007-1-30 09:43 PM:
你把里面的批处理看懂了,你就会改了。

看那个Bat文件?
是我上面贴的那个吗?
没有完全看懂,能否解释一下?

多谢!

[ Last edited by cnpith on 2007-1-31 at 11:19 PM ]
作者: cnpith     时间: 2007-2-1 12:20


  Quote:
Originally posted by terse at 2007-1-30 09:38 PM:
我估计在arj.exe里
打开arj.exe文件进行修改
看里面的BAT文件

[ Last edited by terse on 2007-1-31 at 11:06 AM ]

用什么软件可以打开arj.exe文件?
作者: lianjiang2004     时间: 2007-2-1 19:24


  Quote:
Originally posted by cnpith at 2007-2-1 12:18:


看那个Bat文件?
是我上面贴的那个吗?
没有完全看懂,能否解释一下?

多谢!

[ Last edited by cnpith on 2007-1-31 at 11:19 PM ]

不止这个,里面有几十个批处理呢。慢慢看吧。
作者: qingfushuan     时间: 2007-2-2 00:00    标题:

谢谢楼上的,生长在windows下,不常用dos,,我以为vol是在tools.ex_中的一个程序呢,
还有tools.ex_可以更名tools.exe,用rar解压就可以的,arj.exe它就是个解压工具吗?是被更名的解压工具吗?


发个方便cmd的东东:(把下面的存为1.reg,双击导入注册表后,你的右键在任意文件夹下就有cmd了哈)
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\Command]
@="CMD shell"
[HKEY_CLASSES_ROOT\Directory\shell\Command\command]
@="cmd.exe /k \"cd %L\""

[ Last edited by qingfushuan on 2007-2-1 at 11:46 AM ]
作者: cnpith     时间: 2007-2-2 02:05


  Quote:
Originally posted by lianjiang2004 at 2007-2-1 06:24 AM:

不止这个,里面有几十个批处理呢。慢慢看吧。

我怎么把其他的Bat文件导出来?
.exe的文件用UltraEdit打开都是数字和乱码,没办法编辑啊!

展现一点贡献的精神吧!

极力的感谢!

[ Last edited by cnpith on 2007-2-1 at 01:08 PM ]
作者: cnpith     时间: 2007-2-2 02:07


  Quote:
Originally posted by qingfushuan at 2007-2-1 11:00 AM:
谢谢楼上的,生长在windows下,不常用dos,,我以为vol是在tools.ex_中的一个程序呢,
还有tools.ex_可以更名tools.exe,用rar解压就可以的,arj.exe它就是个解压工具吗 ...

行吗?

[ Last edited by cnpith on 2007-2-1 at 10:23 PM ]
作者: cnpith     时间: 2007-2-3 06:14
顶以下
作者: niutao1     时间: 2007-2-4 08:24
我想lz没有注意看作者的autoexec,其中写得很明白!

copy tools.ex_ x:\tools.arj >nul-----改文件扩展名.ex_为.arj
copy arj.exe x:\ >nul
x:
cd\
arj x -y tools.arj >nul-------解压缩
del tools.arj >nul

也就说明tools.ex_为arj压缩包,在dos下使用arj.exe解压缩,在win下winrar就可解。
作者: cnpith     时间: 2007-2-5 05:54


  Quote:
Originally posted by niutao1 at 2007-2-3 07:24 PM:
我想lz没有注意看作者的autoexec,其中写得很明白!

copy tools.ex_ x:\tools.arj >nul-----改文件扩展名.ex_为.arj
copy arj.exe x:\ >nul
x:
cd\
arj x -y t ...

arj x -y tools.arj >nul  [用arj解压tools.arj到tools文件夹]
del tools.arj >nul [删除没有用的arj文件]
ghost.exe -clone,mode=pload,src=c_pan.gho:1,dst=1:1 -fro -sure -rb
[ghost还原,这条语句为什么不工作?没有ghost的界面出来]


上面的方法不行,我以为是目录的问题,我又尝试:
arj x -y tools.arj >nul  [用arj解压tools.arj到tools文件夹]
del tools.arj >nul [删除没有用的arj文件]
cd tools [到tools目录下]
ghost.exe -clone,mode=pload,src=c_pan.gho:1,dst=1:1 -fro -sure -rb
[ghost还原,这条语句为什么不工作?没有ghost的界面出来]

上面两种方法都不行,我又试:
arj x -y tools.arj >nul
del tools.arj >nul
GHOST_1R.BAT[直接运行GHOST_1R.BAT还原批处理文件,可还是不工作,晕啊~]

[ Last edited by cnpith on 2007-2-4 at 04:55 PM ]
作者: cnpith     时间: 2007-2-5 10:02
张帖张图
附件 1: 1.GIF (2007-2-5 10:02, 8.16 K, 下载附件所需积分 1点 ,下载次数: 1)



作者: niutao1     时间: 2007-2-5 10:46
ghost -clone,mode=pload,src=tebieO7.gho:1,dst=1:1 -fro -sure -rb
参数-fro 为跳过错误,我一般都不加,你可以去掉试试。
在一个你的ghost.exe文件放在那了,如果不在根目录,你要想指向目录,比如在ghost这个文件夹下,你要加入:
%CDROM%:   ---------指定光驱,可以不要
CD\ghost       --------- 进入目录
ghost -clone,mode=pload,src=tebieO7.gho:1,dst=1:1 -sure -rb
作者: niutao1     时间: 2007-2-5 10:52
echo Preparing to start your computer.
echo This may take a few minutes. Please wait...
vol >x:\vol.txt
copy tools.ex_ x:\tools.arj >nul
copy arj.exe x:\ >nul
x:
cd\
arj x -y tools.arj >nul
del tools.arj >nul
doskey >nul
Shsucdx /D:IDE-CD /QQ
findcd /s >nul
cls
usb-hdd.bat
我也晕了,Shsucdx /D:IDE-CD /QQ语句没有什么都白搭!加载光驱驱动!
findcd /s查找光驱盘符,请屏后执行usb-hdd.bat批处理。
作者: cnpith     时间: 2007-2-6 08:50


  Quote:
Originally posted by niutao1 at 2007-2-4 09:46 PM:
ghost -clone,mode=pload,src=tebieO7.gho:1,dst=1:1 -fro -sure -rb
参数-fro 为跳过错误,我一般都不加,你可以去掉试试。
在一个你的ghost.exe文件放在那了,如 ...

arj x -y tools.arj >nul  [用arj解压tools.arj到tools文件夹]
del tools.arj >nul [删除没有用的arj文件]
cd tools [到tools目录下]

ghost.exe文件在tools目录下
这个目录应该已经拷贝到x盘,不需要加载光驱驱动了啊?
找不到光盘里边的.gho文件,至少也应该出现ghost的界面啊?
作者: terse     时间: 2007-2-6 10:02


  Quote:
Originally posted by cnpith at 2007-2-1 12:20:


用什么软件可以打开arj.exe文件?

在win下winrar试试!
作者: niutao1     时间: 2007-2-6 10:02
你把config贴出来看看!
dos要求autoexec与config里的光驱名称对应
作者: cnpith     时间: 2007-2-6 11:05
到这一步了
马上就要成功了
怎么把X的盘符变成光盘的盘符
copy tools.ex_ x:\tools.arj >nul
copy arj.exe x:\ >nul
x:
cd\
arj x -y tools.arj >nul
del tools.arj >nul
doskey >nul
Shsucdx /D:IDE-CD /QQ
findcd /s >nul
cls


@echo off
rem 初始化
if exist u.dat set shd=2
if not exist u.dat set shd=1
ghost -clone,mode=pload,src=%shd%:%tpt%:\c_pan.gho:1,dst=%shd%:1 -fro -sure -fx
[ Last edited by cnpith on 2007-2-5 at 10:06 PM ]
附件 1: 1.GIF (2007-2-6 11:05, 29.98 K, 下载附件所需积分 1点 ,下载次数: 1)



作者: cnpith     时间: 2007-2-6 12:46
成功了
发一贴汇报一下

autoexec.bat后面是这样的(睡觉了,明天还上班,改天再慢慢解释):

arj x -y tools.arj >nul
del tools.arj >nul
doskey >nul
Shsucdx /D:IDE-CD /QQ
findcd /s >nul
cls


@echo off
rem 初始化
if exist u.dat set shd=2
if not exist u.dat set shd=1


:1rec1
call find_ld.bat
quit
call mouse.bat
ghost -clone,mode=pload,src=%shd%:%tpt%:\c_pan.gho:1,dst=%shd%:1 -fro -sure -fx
if errorlevel 1 goto 1rec21

rem 没出错
:1rec20
call tway.bat
call mouse.bat
cls
call w.bat box (+white on +blue) @ghost_1r.bat:1rec20_w #2,20
if errorlevel 100 goto exit
if "%?%"=="2" goto off
if "%?%"=="1" goto boot
:1rec20_w  " OK! " [X]

      一键恢复C盘 成功!

[ 重启(&R) ]    [ 关机(&O) ]

      #? 秒后自动关机

文盲变专家了:P:P:P
作者: niutao1     时间: 2007-2-7 01:32
lz的着两个变量指得是?
%shd%:%tpt%
作者: cnpith     时间: 2007-2-7 09:13


  Quote:
Originally posted by niutao1 at 2007-2-6 12:32 PM:
lz的着两个变量指得是?
%shd%:%tpt%

tools文件夹下find_ld.bat设定的变量,还没有完全看懂

  Quote:
@echo off

REM 一键备份(恢复)C盘判断GHOST映像所在分区
REM 查找第1硬盘最后一个分区(最多支持10个)
set tpt=2
x:
cd\
ghost -dd

:p10
type X:\GHSTSTAT.TXT|find /i " 1:10 " >nul
if errorlevel 1 goto p9
set tpt=10
goto end_f

:p9
type X:\GHSTSTAT.TXT|find /i " 1:9 " >nul
if errorlevel 1 goto p8
set tpt=9
goto end_f

:p8
type X:\GHSTSTAT.TXT|find /i " 1:8 " >nul
if errorlevel 1 goto p7
set tpt=8
goto end_f

:p7
type X:\GHSTSTAT.TXT|find /i " 1:7 " >nul
if errorlevel 1 goto p6
set tpt=7
goto end_f

:p6
type X:\GHSTSTAT.TXT|find /i " 1:6 " >nul
if errorlevel 1 goto p5
set tpt=6
goto end_f

:p5
type X:\GHSTSTAT.TXT|find /i " 1:5 " >nul
if errorlevel 1 goto p4
set tpt=5
goto end_f

:p4
type X:\GHSTSTAT.TXT|find /i " 1:4 " >nul
if errorlevel 1 goto p3
set tpt=4
goto end_f

:p3
type X:\GHSTSTAT.TXT|find /i " 1:3 " >nul
if errorlevel 1 goto p2
set tpt=3
goto end_f

:p2
type X:\GHSTSTAT.TXT|find /i " 1:2 " >nul
if errorlevel 1 goto err_f
set tpt=2
goto end_f

:err_f
set tpt=2
cls
call w.bat box (+white on +blue) @find_ld.bat:err_f_w
if errorlevel 100 goto end_f
if "%?%"=="2" goto boot
if "%?%"=="1" goto end_f

:err_f_w

  错误: 第1硬盘至少要有2个分区,经检测第1硬盘只有1个分区,
        无法进行"一键备份/恢复C盘",如果要进行其它操作,请按"继续".
        
          [ 继续(&C)]             [ 重启(&R) ]

::

:boot
func -r

:end_f


作者: lianjiang2004     时间: 2007-2-8 08:50


  Quote:
Originally posted by cnpith at 2007-2-7 09:13:



tools文件夹下find_ld.bat设定的变量,还没有完全看懂


到这里,你已基本弄明白了。呵呵。
继续努力。
作者: niutao1     时间: 2007-2-8 11:05
如果我想使用ghost分区后直接进行光盘对硬盘的,该怎样实现那
作者: cnpith     时间: 2007-2-9 11:36


  Quote:
Originally posted by niutao1 at 2007-2-7 10:05 PM:
如果我想使用ghost分区后直接进行光盘对硬盘的,该怎样实现那

实现所有的步骤都是自动完成的吗?
作者: niutao1     时间: 2007-2-9 13:37
对,一般都是使用ghost自动分区,其实解决的就是怎样连续进行两个ghost镜像恢复的操作。
ghost -clone,mode=load,src=HD-4.gho,dst=1
ghost -clone,mode=pload,src=tebieO7.gho:1,dst=1:1 -sure
HD-4.gho为分区用的ghost文件,76kb
作者: cnpith     时间: 2007-2-9 14:16
我以前见过可以一键将硬盘瞬间分成四个分区的光盘,要是能找到那张盘,看懂里边的代码,直接两个批处理文件就可以完成,省事多了。

自己研究还得彻底的学习一下DOS
作者: niutao1     时间: 2007-2-10 07:06
ghost -clone,mode=load,src=HD-4.gho,dst=1
ghost -clone,mode=pload,src=tebieO7.gho:1,dst=1:1 -sure
就是那两行代码,不知能不能合并,怎么合并那!