|
zerostudy
中级用户
  
积分 266
发帖 98
注册 2006-4-21
状态 离线
|
『楼 主』:
如何写批处理一键还原????
使用 LLM 解释/回答一下
ghost.exe -clone,mode=pload,src=H:\sys\xp.GHO,dst=1:1 -sure -rb
这个是自动把H盘的恢复到C盘.请问要如何在开机时加一个菜单名为..一键恢复..按他一下就可以执行上面的语句.实现自动恢复...全部分区是FAT32格式的...
要不要装一个纯DOS.....请问如何实现.......
那位能不能给个代码~~~
ghost.exe -clone,mode=pload,src=H:\sys\xp.GHO,dst=1:1 -sure -rb
This is to automatically restore the H drive to the C drive. How to add a menu item named "One - Click Restore" at boot time so that pressing it can execute the above statement to achieve automatic restoration... All partitions are in FAT32 format... Do you need to install a pure DOS..... How to achieve it...
Can someone give a code~~~
|
|
2006-10-19 23:24 |
|
|
NaturalJ0
银牌会员
    
积分 1181
发帖 533
注册 2006-8-14
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
这里有很多人做过类似的东西,你找几个下载了先看看?
There are many people here who have done similar things. You can find a few to download and take a look first?
|
|
2006-10-19 23:46 |
|
|
bc12060101
银牌会员
    
积分 1455
发帖 712
注册 2006-1-20
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
Originally posted by zerostudy at 2006-10-19 23:24:
ghost.exe -clone,mode=pload,src=H:\sys\xp.GHO,dst=1:1 -sure -rb
这个是自动把H盘的恢复到C盘.请问要如何在开机时加一个菜单名为..一键恢复..按他一下就可以执行上 ...
嘿嘿,想当然的处理问题可不是好习惯。楼主的命令ghost是无法执行的!
正确的写法是:ghost.exe -clone,mode=pload,src=H:\sys\xp.GHO:1,dst=1:1 -sure -rb
需要安装一个DOS系统到你的硬盘上,在Autoexec.bat中指定调用你的“恢复”批处理文件,这样,当启动进入dos后,即可执行恢复命令。
至于说开机时的菜单嘛,只要你安装了dos到硬盘,通常都会有新的菜单添加上去的,菜单名称你可以进入boot.ini中随意更改。
Originally posted by zerostudy at 2006-10-19 23:24:
ghost.exe -clone,mode=pload,src=H:\sys\xp.GHO,dst=1:1 -sure -rb
This is to automatically restore the H drive to the C drive. May I ask how to add a menu named..One-click Restore.. at startup, and by pressing it, it can execute the above...
Hehe, it's not a good habit to handle problems rashly. The command ghost of the building owner cannot be executed!
The correct writing is: ghost.exe -clone,mode=pload,src=H:\sys\xp.GHO:1,dst=1:1 -sure -rb
You need to install a DOS system to your hard drive, and specify to call your "restore" batch file in Autoexec.bat. In this way, when booting into dos, you can execute the restore command.
As for the menu at startup, as long as you install dos to the hard drive, there will usually be a new menu added. You can change the menu name at will in boot.ini.
|
|
2006-10-20 04:26 |
|
|
sweetdreamlan
中级用户
  
积分 244
发帖 92
注册 2006-5-13
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
先用Vfloppy 弄个虚拟启动 当然,也可以用别的
然后下个,winimage
用winimage 修改 Vfloppy 里的bootdisk.img
导出 config.sys 文件 ,和autoexec.bat文件
config.sys 内容
DOS=HIGH,UMB,AUTO
autoexec.bat 内容
ghost -clone,mode=pload,src=h:\sys\xp.gho:1,dst=1:1 -sure -rb
然后再把修改过的 config.sys ,和autoexec.bat 用 winimage 导进 bootdisk.img里
然后用 vfloppy 映像文件,
然后可以把 "由虚拟启动软盘启动" 改为
系统还原
然后应用,重启 到选择项那,选择 系统还原
就会自动还原了
First, use Vfloppy to create a virtual boot. Of course, other methods can also be used.
Then download winimage.
Use winimage to modify the bootdisk.img in Vfloppy.
Export the config.sys file and the autoexec.bat file.
Content of config.sys:
DOS=HIGH,UMB,AUTO
Content of autoexec.bat:
ghost -clone,mode=pload,src=h:\sys\xp.gho:1,dst=1:1 -sure -rb
Then import the modified config.sys and autoexec.bat into bootdisk.img using winimage.
Then use the Vfloppy image file.
Then you can change "Boot from virtual boot floppy" to "System Restore".
Then apply and restart to the option selection screen, select "System Restore", and it will automatically restore.
|
|
2006-10-20 06:23 |
|
|
zerostudy
中级用户
  
积分 266
发帖 98
注册 2006-4-21
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
Vfloppy 里的这二个文件 里面的内容太多了...
那些是什么用的.我看不明啊....
是不是把里面的全删了..
config.sys 内容
DOS=HIGH,UMB,AUTO
autoexec.bat 内容
ghost -clone,mode=pload,src=h:\sys\xp.gho:1,dst=1:1 -sure -rb
..加这些就行了....
现在还不重起先.在下载东东..等下试试....
The two files in Vfloppy have too much content... What are they for? I can't understand... Should I delete all of them..
Content of config.sys
DOS=HIGH,UMB,AUTO
Content of autoexec.bat
ghost -clone,mode=pload,src=h:\sys\xp.gho:1,dst=1:1 -sure -rb
..Just add these....
Now I don't restart yet, I'm downloading something.. I'll try later....
|
|
2006-10-20 11:58 |
|
|
不得不爱
超级版主
         我爱DOS
积分 5310
发帖 2044
注册 2005-9-26 来自 四川南充
状态 离线
|
|
2006-10-21 02:39 |
|
|
zerostudy
中级用户
  
积分 266
发帖 98
注册 2006-4-21
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
请问版主..那个ghost文件太大了.加不进去....能不能发一个大的img 空境像给我?
....confiig.sys 可不可以指定到外面的文件夹里执行ghost.exe??
有没有简单的config.sys autoext.bat 的介绍教程?
Excuse me, moderator.. That ghost file is too large and can't be added in.... Can you send me a large img empty image?.... Can config.sys specify to execute ghost.exe in an external folder?? Is there a simple introduction tutorial for config.sys and autoext.bat?
|
|
2006-10-21 03:17 |
|
|
zerostudy
中级用户
  
积分 266
发帖 98
注册 2006-4-21
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
autoexec.bat 内容
加一句IF语句达到要输入密码才能执行下面的ghost.
这个if 要怎么写......我找了下.不知用什么定义变量.及键盘输入用什么表示.....
ghost -clone,mode=pload,src=h:\sys\xp.gho:1,dst=1:1 -sure -rb
The content of autoexec.bat
Add an IF statement to make it necessary to enter a password to execute the following ghost.
How to write this if... I looked it up. I don't know what to use to define variables. And what to use to represent keyboard input.....
ghost -clone,mode=pload,src=h:\sys\xp.gho:1,dst=1:1 -sure -rb
|
|
2006-10-21 03:39 |
|
|
zerostudy
中级用户
  
积分 266
发帖 98
注册 2006-4-21
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
config.sys
DEVICE=HIMEM.sys
DOS=HIGH,UMB,AUTO
autoexec.bat
这如何加???
smartdrv.exe
c:
cd dosghost
ghost -clone,mode=pload,src=h:\sys\xp.gho:1,dst=1:1 -sure -rb
p su 这样行了...请问如何在autoexec.bat这里进行加密啊??要输入密码才能下一步???
config.sys
DEVICE=HIMEM.sys
DOS=HIGH,UMB,AUTO
autoexec.bat
How to add this???
smartdrv.exe
c:
cd dosghost
ghost -clone,mode=pload,src=h:\sys\xp.gho:1,dst=1:1 -sure -rb
p su That works... May I ask how to encrypt here in autoexec.bat? You need to enter a password to proceed???
|
|
2006-10-21 04:17 |
|
|
cmyhome
初级用户
 
积分 74
发帖 30
注册 2006-6-1
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
Originally posted by zerostudy at 2006-10-21 03:17:
请问版主..那个ghost文件太大了.加不进去....能不能发一个大的img 空境像给我?
....confiig.sys 可不可以指定到外面的文件夹里执行ghost.exe??
有没有简单的 ...
1.config.sys是不能运行ghost.exe的,要在autoexec.bat里加;
2.ghost.exe太大,你COPY到硬盘上嘛,调用时加上路径.
我这有个自己编的,你试下吧,第4项的重启项,你自己找个DOS下的重启命令就行了。
*******************************************************
@ECHO OFF
TH
ECHO 操作系统一键恢复
ECHO 请用数字键选择菜单
ECHO.
ECHO 1. 自 动 备 份C: 盘
ECHO 2. 自 动 恢 复C: 盘
ECHO 3. 启动到 MS-DOS
ECHO 4. 重 启 系 统
ECHO.
ECHO 注意:恢复系统前请备份C:盘重要数据
CHOICE /c:1234
IF ERRORLEVEL 4 GOTO RESET
IF ERRORLEVEL 3 GOTO GHO
IF ERRORLEVEL 2 GOTO BAK
IF ERRORLEVEL 1 GOTO DOS
:BAK
TH/Q
CLS
GHOST -CLONE,MODE=PDUMP,SRC=1:1,DST=H:\SYS\SYSTEM.GHO -SURE -Z9 -RB
GOTO END
:GHO
TH/Q
CLS
GHOST -CLONE,MODE=PLOAD,SRC=H:\SYS\SYSTEM.GHO:1,DST=1:1 -SURE -RB
GOTO END
:DOS
TH/Q
CLS
GOTO END
:RESET
TH/Q
CLS
RESET.COM
:END
Originally posted by zerostudy at 2006-10-21 03:17:
Excuse me, moderator.. That ghost file is too large to add... Can you send me a large img empty image?
....Can config.sys execute ghost.exe in an external folder??
Is there any simple...
1. config.sys cannot run ghost.exe; you need to add it in autoexec.bat;
2. The ghost.exe is too large, you can copy it to the hard drive and call it with the path.
I have one I made myself, you can try it. For the restart item in item 4, you can find a DOS restart command yourself.
*******************************************************
@ECHO OFF
TH
ECHO Operating System One - Click Restore
ECHO Please use the number key to select the menu
ECHO.
ECHO 1. Automatically Backup C: Drive
ECHO 2. Automatically Restore C: Drive
ECHO 3. Boot to MS-DOS
ECHO 4. Restart System
ECHO.
ECHO Note: Please back up important data on C: drive before restoring the system
CHOICE /c:1234
IF ERRORLEVEL 4 GOTO RESET
IF ERRORLEVEL 3 GOTO GHO
IF ERRORLEVEL 2 GOTO BAK
IF ERRORLEVEL 1 GOTO DOS
:BAK
TH/Q
CLS
GHOST -CLONE,MODE=PDUMP,SRC=1:1,DST=H:\SYS\SYSTEM.GHO -SURE -Z9 -RB
GOTO END
:GHO
TH/Q
CLS
GHOST -CLONE,MODE=PLOAD,SRC=H:\SYS\SYSTEM.GHO:1,DST=1:1 -SURE -RB
GOTO END
:DOS
TH/Q
CLS
GOTO END
:RESET
TH/Q
CLS
RESET.COM
:END
|
|
2006-10-21 20:48 |
|
|
weilong888
银牌会员
    
积分 1270
发帖 548
注册 2004-5-31
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
顺序搞错了。应该1 是 启动到 MS-DOS,2自 动 备 份C: 盘,
3. 自 动 恢 复C: 盘
The order is wrong. It should be 1. Boot to MS-DOS, 2. Automatically back up the C: drive, 3. Automatically restore the C: drive
|
|
2006-10-21 22:45 |
|
|
不得不爱
超级版主
         我爱DOS
积分 5310
发帖 2044
注册 2005-9-26 来自 四川南充
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
10楼的代码我给改进下,tH应该是tw吧?
@ECHO OFF
path c:\dosghost
tw
ECHO 操作系统一键恢复
ECHO 请用数字键选择菜单
ECHO.
ECHO 1. 自 动 备 份C: 盘
ECHO 2. 自 动 恢 复C: 盘
ECHO 3. 启动到 MS-DOS
ECHO 4. 重 启 系 统
ECHO.
ECHO 注意:恢复系统前请备份C:盘重要数据
CHOICE /c:1234
tw/q
CLS
IF ERRORLEVEL 4 RESET.COM
IF ERRORLEVEL 3 GOTO END
IF ERRORLEVEL 2 GOTO GHO
IF ERRORLEVEL 1 GOTO BAK
:BAK
GHOST -CLONE,MODE=PDUMP,SRC=1:1,DST=H:\SYS\SYSTEM.GHO -SURE -Z9 -RB
GOTO END
:GHO
GHOST -CLONE,MODE=PLOAD,SRC=H:\SYS\SYSTEM.GHO:1,DST=1:1 -SURE -RB
GOTO END
:END
Last edited by qwe1234567 on 2006-10-21 at 23:17 ]
I'll improve the code on the 10th floor. tH should be tw, right?
@ECHO OFF
path c:\dosghost
tw
ECHO One - key system recovery
ECHO Please use the numeric keys to select the menu
ECHO.
ECHO 1. Automatically back up drive C:
ECHO 2. Automatically restore drive C:
ECHO 3. Boot to MS - DOS
ECHO 4. Restart the system
ECHO.
ECHO Note: Please back up important data on drive C: before restoring the system
CHOICE /c:1234
tw/q
CLS
IF ERRORLEVEL 4 RESET.COM
IF ERRORLEVEL 3 GOTO END
IF ERRORLEVEL 2 GOTO GHO
IF ERRORLEVEL 1 GOTO BAK
:BAK
GHOST -CLONE,MODE=PDUMP,SRC=1:1,DST=H:\SYS\SYSTEM.GHO -SURE -Z9 -RB
GOTO END
:GHO
GHOST -CLONE,MODE=PLOAD,SRC=H:\SYS\SYSTEM.GHO:1,DST=1:1 -SURE -RB
GOTO END
:END
Last edited by qwe1234567 on 2006-10-21 at 23:17 ]
|

我的网络U盘 我的网络第2个U盘
论坛软件下载链接
灵雨飘零论坛
论坛新手必读,所有人的基本行为准则
刷QQ空间人气、留言的小软件 |
|
2006-10-21 23:15 |
|
|
zerostudy
中级用户
  
积分 266
发帖 98
注册 2006-4-21
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
谢谢了..本来我是想要恢复就行的....到时我再试试....我在ghost加个密算了.这样就不会一小心给别人上机按了恢复的了......
config.sys是不能运行ghost.exe的,要在autoexec.bat里加;版主写的算不算在config里运行啊?
Thanks. Originally I just wanted to recover it.... I'll try again later.... I'll add a password to Ghost. That way, I won't accidentally let others press recover when using the computer......
config.sys cannot run ghost.exe; it needs to be added in autoexec.bat; does the version master's writing count as running in config?
|
|
2006-10-22 01:06 |
|
|
winzhzhq2006
新手上路

积分 8
发帖 4
注册 2006-10-22
状态 离线
|
|
2006-10-22 10:19 |
|
|
zhengxiang
初级用户
 
积分 68
发帖 24
注册 2006-6-26
状态 离线
|
|
2006-11-3 05:24 |
|