Originally posted by maya0su at 2008-10-30 17:41:
In short, the LZ only needs to replace d:\ with serial numbers like 1:2, 1:3, or 1:4, etc.
Such a simple batch processing is only limited to your own knowledge of the absolute address of the GHO file.
Broadly speaking, it is not universal.
GHOST...
First backup and then restore.
The path can of course be absolute.
If you want to bring automatic search, the following is it.
Transferred from the forum zsx
I didn't modify it. This is an idea.
If you want to make a batch processing with search, the following code is needed
COPY %CDROM%:\GHOST.EXE %RAMDRIVE%>NUL
smartdrv /q
SET Drv=C D E F G H I J K L M N O P Q R S T U V W X Y Z
FOR %%I IN (%Drv%) DO DIR %%I:\*.gho /b /s /a >>%RAMDRIVE%\ghost.txt
find /i ".gho" %RAMDRIVE%\ghost.txt
if errorlevel 1 goto a
if not errorlevel 1 goto b
:a
cls
ACIOS
echo.
echo.
echo.
echo No backup file found in your disk, now restore the backup file from the CD.
goto gh
:b
type %RAMDRIVE%\ghost.txt|nset ghos=$1
%RAMDRIVE%\Ghost -clone,mode=pload,src=%ghos%:1,dst=1:1 -sure -fx
GOTO END
:gh
%RAMDRIVE%\Ghost -clone,mode=pload,src=%cdrom%:\xp.gh:1,dst=1:1 -sure -fx
GOTO END
Function: Can automatically find *.GHO files and restore, has been tested. If someone needs IMG files, I can upload.
[
Last edited by kookycy on 2008-11-2 at 11:05 ]