In the GHOST software image file on a typical GHOST CD, there are two batch files that complete the GHOST work! The batch files are as follows:
——————————autoexec.bat————————
@ECHO OFF
SHSUCDX /D:?PATACD01 /D:?SATACD01 /D:?SATACD02 /D:?SATACD03
findcd /s>nul
call findcdr "ghost.exe" C D E F G H I J K L M N O P Q R S T U V W X Y Z
%CDROM%:
ghost -nousb -clone,mode=pload,src=HHsp3.gho:1,dst=1:1 -crcignore -sure -fx
grub --config-file="root (hd0,0);chainloader +1"
————————————FINDCDR.BAT——————————
@echo off
set file=%1
:FCDR
if "%CDROM1%"=="%2:" goto SCDR
shift
goto FCDR
:SCDR
cda %2:>nul
IF errorlevel 1 goto next
if not exist %2:\%FILE% goto next
set cdrom=%2
goto end
:next
if "%2"=="Z" goto end
shift
goto SCDR
:end
——————————————————————
When the two batch files above run, they get the drive letter of the CD-ROM, but not the drive letter of the hard disk. The system files are copied using GHOST.exe!!!
Now I want, after GHOST is completed, to copy a few more files from the CD to the first partition of the hard disk. How can I do that......
Please give me some pointers, experts!!! Thanks!!!!
——————————autoexec.bat————————
@ECHO OFF
SHSUCDX /D:?PATACD01 /D:?SATACD01 /D:?SATACD02 /D:?SATACD03
findcd /s>nul
call findcdr "ghost.exe" C D E F G H I J K L M N O P Q R S T U V W X Y Z
%CDROM%:
ghost -nousb -clone,mode=pload,src=HHsp3.gho:1,dst=1:1 -crcignore -sure -fx
grub --config-file="root (hd0,0);chainloader +1"
————————————FINDCDR.BAT——————————
@echo off
set file=%1
:FCDR
if "%CDROM1%"=="%2:" goto SCDR
shift
goto FCDR
:SCDR
cda %2:>nul
IF errorlevel 1 goto next
if not exist %2:\%FILE% goto next
set cdrom=%2
goto end
:next
if "%2"=="Z" goto end
shift
goto SCDR
:end
——————————————————————
When the two batch files above run, they get the drive letter of the CD-ROM, but not the drive letter of the hard disk. The system files are copied using GHOST.exe!!!
Now I want, after GHOST is completed, to copy a few more files from the CD to the first partition of the hard disk. How can I do that......
Please give me some pointers, experts!!! Thanks!!!!
