|
zjrcool
初级用户
 
积分 123
发帖 8
注册 2004-8-7
状态 离线
|
『楼 主』:
autoexec.bat 自动搜索功能???
使用 LLM 解释/回答一下
我有个问题?想问大家我在线等。
我想帮朋友做个GHOST恢复盘,GHOST备份文件是放在硬盘上(目录不一定),光盘上只做个引导信息。光盘
上的引导信息具体用处:
光盘启动后我们只要按一下键盘上的Y键就可以调用硬盘上的GHOST备份文件恢复过来。。不过问题就出在
这里。我那些朋友GHOST备份文件放的位置都不同有些放在E:\GHOST目录,有些放在F:\GHOST目录。也有
些放在其它目录下。。请问有什么办法在autoexec.bat 里加入几个语句,会自动搜索GHOST备份文件的位
置。。然后就开始恢复呢。。
在此谢谢大家了!
I have a question? I want to ask everyone, I'm waiting online.
I want to make a GHOST recovery disc for a friend. The GHOST backup file is placed on the hard drive (the directory is not necessarily fixed), and only the boot information is made on the disc. The specific use of the boot information on the disc:
After the disc is booted, we just need to press the Y key on the keyboard to call the GHOST backup file on the hard drive to restore it. But the problem is here. The GHOST backup files of my friends are placed in different locations. Some are placed in the E:\GHOST directory, some are placed in the F:\GHOST directory. Some are placed in other directories.请问Is there any way to add a few statements in autoexec.bat to automatically search for the location of the GHOST backup file. Then start the recovery.
Thank you everyone here!
|
|
2004-8-7 00:00 |
|
|
龙王
银牌会员
    
积分 1186
发帖 334
注册 2003-5-30
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
有很多方法实现,我从前也变过这样的批处理,我提供一种思路,用choice设定盘符,再用dir定位ghost备份的位置,再把位置告诉给环境变量,ghost命令语句使用变量进行恢复操作,其中用到一个小程序lmod.com,论坛搜索得到,好人做到底,上传给你吧
choice相关语句省略
cd\
diir *.gho /s/b|lmod set gho=
ghost.exe -sure -rb -clone,mode=pload,src=%gho%:1,dst=1:1
There are many methods to implement. I also changed such batch files before. I provide an idea. Use choice to set the drive letter, then use dir to locate the location of the ghost backup, then tell the location to the environment variable. The ghost command statement uses variables for the restore operation. One small program lmod.com is used, which can be found by searching in the forum. A good deed is done to the end, and I will upload it to you.
The choice -related statements are omitted.
cd\
diir *.gho /s/b|lmod set gho=
ghost.exe -sure -rb -clone,mode=pload,src=%gho%:1,dst=1:1
|
|
2004-8-12 00:00 |
|
|
龙王
银牌会员
    
积分 1186
发帖 334
注册 2003-5-30
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
上传失败,你先搜索一下lmod,找不到再说吧
Upload failed, you first search for lmod, and then talk about it if you can't find it
|
|
2004-8-12 00:00 |
|
|
ligong
初级用户
 
积分 131
发帖 6
注册 2004-6-25
状态 离线
|
|
2004-10-20 00:00 |
|
|
chenall
银牌会员
    
积分 1276
发帖 469
注册 2002-12-23 来自 福建泉州
状态 离线
|
|
2004-10-25 00:00 |
|
|
hujintao
初级用户
 
积分 74
发帖 21
注册 2006-8-9
状态 离线
|
『第 6 楼』:
不只一个gho文件怎么办呢
使用 LLM 解释/回答一下
如果一个分区下有不只一个的.gho文件,龙王的方法diir *.gho /s/b|lmod set gho=只能把找到的第一个文件set进去,而这个也许不是要用到文件?怎样继续搜索呢?
Last edited by hujintao on 2006-9-3 at 10:48 ]
If there are more than one .gho files under a partition, the method of Dragon King diir *.gho /s/b|lmod set gho= can only set the first found file, and this may not be the file to be used? How to continue searching?
Last edited by hujintao on 2006-9-3 at 10:48 ]
|
|
2006-9-3 10:46 |
|
|
yadmek
初级用户
  我不入地狱谁入地狱
积分 20
发帖 8
注册 2006-8-26
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
回楼上的`*.gho是代表找所有GHOST备份文件为什么你不可以在*替换成你想找那份呢?
Reply: The `*.gho above represents finding all GHOST backup files. Why can't you replace * with the specific one you want to find?
|
|
2006-9-3 21:58 |
|
|
yadmek
初级用户
  我不入地狱谁入地狱
积分 20
发帖 8
注册 2006-8-26
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
还有diir?是不是打多了一个I呢?
Is it "diir"? Did you type one extra "i"?
|
|
2006-9-3 21:58 |
|
|
yadmek
初级用户
  我不入地狱谁入地狱
积分 20
发帖 8
注册 2006-8-26
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
还有那个dir是不能全盘搜索的哦`还要需要先打c: d: e: f:那些。。。
And that dir cannot search the entire disk. Oh, you also need to type c: d: e: f: and so on...
|
|
2006-9-3 22:00 |
|
|
hujintao
初级用户
 
积分 74
发帖 21
注册 2006-8-9
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
那怎样继续搜索
找到自己要的那个gho文件呢
Then how to continue searching to find the GHO file you want
|
|
2006-9-5 04:10 |
|
|
chujiafu
银牌会员
    
积分 1339
发帖 595
注册 2004-5-26 来自 安徽 宿州
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
可不可以先设个变量:先让选择一下.Gho文件所在的盘符,再用Dir x:\*.gho/s/a查找。找到之后再用Ghost自动恢复。
Can we first set a variable: first let's choose the drive letter where the .Gho file is located, then use Dir x:\*.gho/s/a to search. After finding it, then use Ghost to automatically restore.
|
|
2006-9-8 06:15 |
|