|
26933062
银牌会员
    
积分 2268
发帖 879
注册 2006-12-19
状态 离线
|
『楼 主』:
批处理重启后还能运行?
使用 LLM 解释/回答一下
最近我一朋友买了台新电脑,我去看了看,发现他电脑里有一个用bat恢复系统的ghost 里面有些看不懂
效果是运行 一键备份.bat 电脑就会自动重启,进入dos工具箱,并运行bf.bat文件, (这个bf.bat文件的内容就是,ghost命令,这个我们大家都知道的)
问题是,他怎么能在重启后还能自动运行这个批处理呢?
现将一键备份.bat内容发上来,请大家帮忙看看
@ color 9F
@ ECHO OFF
@ ECHO.
@ ECHO.
@ ECHO ┏━━━━━━━━━━━━━━━━━━━━━━┓
@ ECHO ┃ ┃
@ ECHO ┃ 此命令将使系统自动重启并进入DOS下用GHOST ┃
@ ECHO ┃ 备份C盘,保存为d:\GHOST\WINXPSP2.gho。 ┃
@ ECHO ┃ 目标盘格式既可以是FAT32也可以是NTFS。 ┃
@ ECHO ┃ ┃
@ ECHO ┃ 若继续将立即重启,否则请关掉此窗口。 ┃
@ ECHO ┃ ┃
@ ECHO ┗━━━━━━━━━━━━━━━━━━━━━━┛
@ ECHO.
@ ECHO.
PAUSE
C:\Ghost\replaced\boot2.exe
C:\Ghost\replaced\AUTOEXEC-bf.exe
md d:\Ghost
copy ghost.exe d:\Ghost /y
copy ghost.ini d:\Ghost /y
copy Ghost镜像浏览器v8.3.exe d:\Ghost /y
copy 此文件夹勿删.txt d:\Ghost /y
copy oeminfo.ini c:\windows\system32 /y
copy oemlogo.bmp c:\windows\system32 /y
c:\Ghost\QuickReboot.exe
===============================================
里面的这个文件 是改 BOOT.INI 文件用的,我看了
C:\Ghost\replaced\boot2.exe
这个是运行 bf.bat的
C:\Ghost\replaced\AUTOEXEC-bf.exe
bf.bat内容如下
del c:\autoexec.bat
c:\ghost\attrib.exe -a -s -h c:\boot.ini
copy C:\Ghost\original\boot.ini c:\ /y
c:\ghost\attrib.exe +a +s +h c:\boot.ini
Ghost.exe -clone,mode=pdump,src=1:1,dst=1:2\Ghost\winxpsp2.gho -z3 -sure -rb
里面还有一些exe文件,只有一两个我不知道是干什么的,其它都是用winrar作的自释放文件,若有需要,也可将内容发上来.
Last edited by 26933062 on 2007-5-29 at 01:29 AM ]
Recently, a friend of mine bought a new computer. I went to take a look and found that there was a Ghost in his computer that uses a bat to restore the system, and there were some things I couldn't understand.
The effect is that when you run One - Click Backup.bat, the computer will automatically restart, enter the DOS toolbox, and run the bf.bat file. (We all know that the content of this bf.bat file is the Ghost command.)
The problem is, how can it automatically run this batch file after restarting?
Now, the content of One - Click Backup.bat is posted here. Please help take a look.
@ color 9F
@ ECHO OFF
@ ECHO.
@ ECHO.
@ ECHO ┏━━━━━━━━━━━━━━━━━━━━━━┓
@ ECHO ┃ ┃
@ ECHO ┃ This command will make the system automatically restart and enter DOS to use GHOST to back up the C drive, and save it as d:\GHOST\WINXPSP2.gho. ┃
@ ECHO ┃ The target disk format can be either FAT32 or NTFS. ┃
@ ECHO ┃ ┃
@ ECHO ┃ If you continue, it will restart immediately. Otherwise, please close this window. ┃
@ ECHO ┃ ┃
@ ECHO ┗━━━━━━━━━━━━━━━━━━━━━━┛
@ ECHO.
@ ECHO.
PAUSE
C:\Ghost\replaced\boot2.exe
C:\Ghost\replaced\AUTOEXEC - bf.exe
md d:\Ghost
copy ghost.exe d:\Ghost /y
copy ghost.ini d:\Ghost /y
copy Ghost Image Browser v8.3.exe d:\Ghost /y
copy Do Not Delete This Folder.txt d:\Ghost /y
copy oeminfo.ini c:\windows\system32 /y
copy oemlogo.bmp c:\windows\system32 /y
c:\Ghost\QuickReboot.exe
===============================================
The file inside is for modifying the BOOT.INI file. I have seen it.
C:\Ghost\replaced\boot2.exe
This is the one that runs bf.bat.
C:\Ghost\replaced\AUTOEXEC - bf.exe
The content of bf.bat is as follows.
del c:\autoexec.bat
c:\ghost\attrib.exe -a -s -h c:\boot.ini
copy C:\Ghost\original\boot.ini c:\ /y
c:\ghost\attrib.exe +a +s +h c:\boot.ini
Ghost.exe -clone,mode=pdump,src=1:1,dst=1:2\Ghost\winxpsp2.gho -z3 -sure -rb
There are also some other exe files. Only one or two I don't know what they are for. The others are self - extracting files made with winrar. If needed, the content can also be posted here.
Last edited by 26933062 on 2007 - 5 - 29 at 01:29 AM ]
|
|
2007-5-29 01:24 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
To 26933062:
你可以把boot2.exe修改后的boot.ini文件的内容发出来,系统重启后能运行bf.bat的原因可能和这个有关系,autoexec.bat的内容也有必要拿出来看看。
至于oeminfo.ini,你可以右键点“我的电脑”,依次“属性”——“常规”——“技术支持信息(s)”,可以看见里面内容和oeminfo.ini里面的一一对应。
而oemlogo.bmp是左边的图像。
To 26933062:
You can send out the content of the modified boot.ini file of boot2.exe. The reason why bf.bat can run after the system restarts may be related to this. The content of autoexec.bat is also necessary to take a look at.
As for oeminfo.ini, you can right-click "My Computer", then "Properties" - "General" - "Technical Support Information (s)", and you can see that the content inside corresponds one by one with that in oeminfo.ini.
And oemlogo.bmp is the image on the left.
|
|
2007-5-29 10:50 |
|
|
lxmxn
版主
       
积分 11386
发帖 4938
注册 2006-7-23
状态 离线
|
|
2007-5-29 10:54 |
|
|
baomaboy
银牌会员
    
积分 1513
发帖 554
注册 2005-12-30
状态 离线
|
|
2007-5-29 11:21 |
|
|
26933062
银牌会员
    
积分 2268
发帖 879
注册 2006-12-19
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
这是AUTOEXEC.bat的内容
cd\
cd ghost
bf.bat
这是boot2.exe里的boot.ini的内容
timeout=1
default=C:\
C:\="DOS"
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
这是ghost\bf.bat 的内容
del c:\autoexec.bat
c:\ghost\attrib.exe -a -s -h c:\boot.ini
copy C:\Ghost\original\boot.ini c:\ /y
c:\ghost\attrib.exe +a +s +h c:\boot.ini
Ghost.exe -clone,mode=pdump,src=1:1,dst=1:2\Ghost\winxpsp2.gho -z3 -sure -rb
Last edited by 26933062 on 2007-5-29 at 12:46 PM ]
This is the content of AUTOEXEC.bat
cd\
cd ghost
bf.bat
This is the content of boot.ini in boot2.exe
timeout=1
default=C:\
C:\="DOS"
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
This is the content of ghost\bf.bat
del c:\autoexec.bat
c:\ghost\attrib.exe -a -s -h c:\boot.ini
copy C:\Ghost\original\boot.ini c:\ /y
c:\ghost\attrib.exe +a +s +h c:\boot.ini
Ghost.exe -clone,mode=pdump,src=1:1,dst=1:2\Ghost\winxpsp2.gho -z3 -sure -rb
Last edited by 26933062 on 2007-5-29 at 12:46 PM ]
|
|
2007-5-29 12:41 |
|
|
26933062
银牌会员
    
积分 2268
发帖 879
注册 2006-12-19
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
以下是ghost文件夹里的文件名
attrib.exe
bf.bat
fail.cmd
Ghost.exe
GHOST.INI
Ghost镜像浏览器v8.3.exe
hf.bat
mouse.exe
oeminfo.ini
oemlogo.bmp
QuickReboot.exe
一键备份简述.txt
一键备份系统.cmd
一键恢复系统.cmd
此文件夹勿删.txt
replaced
original
以下是replaced文件夹里的文件名
AUTOEXEC-bf.exe
AUTOEXEC-hf.exe
boot2.exe
boot3.exe
不是病毒或木马.txt
以下是original文件夹里的文件名
boot.exe
boot.ini
不是病毒或木马.txt
Here are the translations of the content you provided:
The following are the filenames in the ghost folder:
attrib.exe
bf.bat
fail.cmd
Ghost.exe
GHOST.INI
Ghost Mirror Browser v8.3.exe
hf.bat
mouse.exe
oeminfo.ini
oemlogo.bmp
QuickReboot.exe
Brief Introduction of One - Click Backup.txt
One - Click Backup System.cmd
One - Click Restore System.cmd
Do Not Delete This Folder.txt
replaced
original
The following are the filenames in the replaced folder:
AUTOEXEC - bf.exe
AUTOEXEC - hf.exe
boot2.exe
boot3.exe
It's Not a Virus or Trojan Horse.txt
The following are the filenames in the original folder:
boot.exe
boot.ini
It's Not a Virus or Trojan Horse.txt
|
|
2007-5-29 13:07 |
|
|
baomaboy
银牌会员
    
积分 1513
发帖 554
注册 2005-12-30
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
快看晕了 你不就想知道为什么重启后为什么会运行bf.bat吗。
1.用C:\Ghost\replaced\boot2.exe替换boot.ini保证重启后进入dos而不是windows
2.用C:\Ghost\replaced\AUTOEXEC-bf.exe里面的autoexec.bat替换系统中那个默认的。AUTOEXEC-bf.exe中的atutoexe.bat的内容不就是有运行bf.bat的一行语句吗。
3.最后用c:\Ghost\QuickReboot.exe重启就进boot.ini的首选“dos”了当然执autoexec.bat也就执行了bf.bat了
Wow, I'm getting confused. Don't you just want to know why bf.bat runs after restart?
1. Replace boot.ini with C:\Ghost\replaced\boot2.exe to ensure that after restart, it enters DOS instead of Windows.
2. Replace the default autoexec.bat in the system with autoexec.bat from C:\Ghost\replaced\AUTOEXEC-bf.exe. The content of autoexec.bat in AUTOEXEC-bf.exe is the line that runs bf.bat.
3. Finally, use c:\Ghost\QuickReboot.exe to restart, and then it will enter the preferred "DOS" in boot.ini, and of course, autoexec.bat will be executed, so bf.bat will be executed too.
|

好多菩提树,好多明镜台。本来好多物,好多的尘埃。 |
|
2007-5-29 13:19 |
|
|
26933062
银牌会员
    
积分 2268
发帖 879
注册 2006-12-19
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
哦.启动dos时,AUTOEXEC.bat是必须运行的是吗?
我见xp启动时不运行,还以为dos也不运行呢?
谢谢你了,
还请问 QuickReboot.exe 是什么?
要重启为什么不用 shutdown -s 命令呢? QuickReboot.exe 还有别的用处吗???
Oh. When booting DOS, is AUTOEXEC.bat necessarily run?
I saw that it doesn't run when XP boots, and I thought DOS didn't run it either?
Thank you,
Also, what is QuickReboot.exe?
Why not use the shutdown -s command to reboot? Does QuickReboot.exe have other uses???
|
|
2007-5-29 13:49 |
|
|
26933062
银牌会员
    
积分 2268
发帖 879
注册 2006-12-19
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
还想请问
既然已经有了 ghost.exe 了
为什么还要 Ghost镜像浏览器v8.3.exe 呢?
Ghost镜像浏览器v8.3.exe 是干什么用的?
没有 Ghost镜像浏览器v8.3.exe ghost.exe 能正常运行吗?
Also want to ask
Since there is already ghost.exe,
Why do we still need Ghost Image Browser v8.3.exe?
What does Ghost Image Browser v8.3.exe do?
Can ghost.exe run normally without Ghost Image Browser v8.3.exe?
|
|
2007-5-29 13:52 |
|
|
baomaboy
银牌会员
    
积分 1513
发帖 554
注册 2005-12-30
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
Originally posted by 26933062 at 2007-5-29 13:49:
哦.启动dos时,AUTOEXEC.bat是必须运行的是吗?
我见xp启动时不运行,还以为dos也不运行呢?
谢谢你了,
还请问 QuickReboot.exe 是什么?
要重启为什么不用 shutdown -s 命令呢? QuickReboot.exe 还有别的用处吗???
QuickReboot.exe 是VB写的快速重启xp的工具,电脑公司版不考虑用shutdown的原因应该是等待时间慢甚至有时会卡死,而QuickReboot.exe则不会。
Originally posted by 26933062 at 2007-5-29 13:49:
Oh. When booting DOS, is AUTOEXEC.bat required to run?
I saw that it doesn't run when XP starts, so I thought DOS didn't run it either?
Thank you,
Also, what is QuickReboot.exe?
Why not use the shutdown -s command when restarting? Is there any other use for QuickReboot.exe???
QuickReboot.exe is a tool written in VB for quickly restarting XP. The reason why the computer company version does not consider using shutdown is probably because the waiting time is slow or sometimes it freezes, while QuickReboot.exe does not.
|

好多菩提树,好多明镜台。本来好多物,好多的尘埃。 |
|
2007-5-29 14:05 |
|
|
baomaboy
银牌会员
    
积分 1513
发帖 554
注册 2005-12-30
状态 离线
|
『第 11 楼』:
使用 LLM 解释/回答一下
Originally posted by 26933062 at 2007-5-29 13:52:
还想请问
既然已经有了 ghost.exe 了
为什么还要 Ghost镜像浏览器v8.3.exe 呢?
Ghost镜像浏览器v8.3.exe 是干什么用的?
没有 Ghost镜像浏 ...
没有 Ghost镜像浏览器v8.3.exe ghost.exe 能正常运行!
Ghost镜像浏览器v8.3.exe类似于windows的资源管理器,有了它你可以提取或编辑.gho镜像文件中的内容,当然如果你只是备份和恢复就用不到它。作者加入它就算是为“高级”用户提供的吧。
Originally posted by 26933062 at 2007-5-29 13:52:
I would also like to ask
Since there is already ghost.exe,
Why do we still need Ghost Image Browser v8.3.exe?
What does Ghost Image Browser v8.3.exe do?
Without Ghost Image Browser v8...
Without Ghost Image Browser v8.3.exe, ghost.exe can run normally!
Ghost Image Browser v8.3.exe is similar to Windows Explorer. With it, you can extract or edit the contents in .gho image files. Of course, if you just back up and restore, you don't need it. The author added it to provide it for "advanced" users.
|

好多菩提树,好多明镜台。本来好多物,好多的尘埃。 |
|
2007-5-29 14:10 |
|
|
26933062
银牌会员
    
积分 2268
发帖 879
注册 2006-12-19
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
谢谢,谢谢大家,学了不少东西!!!!
Thanks, thank you everyone, I've learned a lot of things!!!!
|
|
2007-5-29 16:05 |
|
|
marsblues
新手上路

积分 1
发帖 1
注册 2010-9-26
状态 离线
|
『第 13 楼』:
好贴 好回复 谢谢共享
使用 LLM 解释/回答一下
好贴 好回复 谢谢共享
Good post, good reply, thank you for sharing
|
|
2010-9-27 12:17 |
|