|
5#
楼主 |
发表于 2011-10-14 05:20:31
|
只看该作者
系统下运行VBS
Set ws = CreateObject("Wscript.Shell")
ws.run "cmd /c xfgh.bat",vbhide
Dim a
DIM objShell
set objShell=wscript.createObject("wscript.shell")
a = MsgBox("这里可以输入你要写的文字" & Chr(10) _
& "这里可以输入你要写的文字", 1)
if a = 1 Then objShell.Run "shutdown -r -t 10",1
(xfgh.bat)
attrib boot.ini -h -r -s
ping -n 1 127.0.0.1 > nul
attrib c:\boot.ini -h -r -s
ping -n 1 127.0.0.1 > nul
copy boot.ini c:\
copy xfldr c:\
copy ghost.img c:\
exit
(boot.ini)
[boot loader]
timeout=3
default=c:\xfldr
[operating systems]
c:\xfldr=自动备份系统
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect /noexecute=alwaysoff
(xfldr)
default 0
timeout 1
title ghost.IMG
find --set-root --ignore-floppies /ghost.IMG
map --mem /ghost.IMG (fd0)
map --hook
chainloader (fd0)+1
rootnoverify (fd0)
重启动后
ghost.exe -clone,mode=pdump,src=1:1,dst=1.2:\xfghost\xf11.gho -z2 -sure -fx
@echo off
set cp=936
if not %1#==# set cp=%1
echo Loading IFS driver..
lh hdpmi32
lh ndos -lfn -mountall -cp:%cp%
ndlist -
set cp=
echo.
echo [boot loader] >>boot.ini
echo timeout=4 >>boot.ini
echo default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS >>boot.ini
echo [operating systems] >>boot.ini
echo multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect /noexecute=alwaysoff >>boot.ini
copy boot.ini c:\
attrib c:\boot.ini +h +r +s
shutdown -r |
|