Pls. Need help in my batch.

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
DOSMAN808
Posts: 1
Joined: 06 Mar 2009 16:54

Pls. Need help in my batch.

#1 Post by DOSMAN808 » 06 Mar 2009 17:02

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

Post Reply