Page 1 of 1

Pls. Need help in my batch.

Posted: 06 Mar 2009 17:02
by DOSMAN808
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