Hi,
I'm trying to write a ghost script to restore an image from GHOST.EXE, but wants to see the outcome of ghost, if it runs fine goto Done if error goto :Error. Here is my batch.
echo
echo 1. Restore C: with Microsoft Windows XP Pro SP3
echo 2. EXIT...Sorry A Mistake!
echo:
choice /c:12 Please Make A Selection
if errorlevel 2 goto End
if errorlevel 1 goto GHOST
:GHOST
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo
echo Proceeding with your request To Restore Drive C:
echo
echo.
E:
CD\
GHOST.EXE -clone,mode=pload,src=E:\Dell86.GHO:1,dst=1 -fx -quiet -sure -batch
i need something here to see if ghost loaded the image correctly if not goto to:error
Goto End
ECHO.
:End
cls
Thanks
Pls. Need help in my batch.
Moderator: DosItHelp