Ghost Solution Suite

 View Only
  • 1.  Creating Automated Ghost Disk

    Posted Apr 10, 2014 04:22 PM

    Hello Everyone,

     

    I've been racking my brain all day trying to figure out why a certain command line will not work for ghost.  

    What I'mempting to create is a WINPE 4.0 disk which will have a batch file that allows little to no interaction past a double click to re-image a users computer.  Here's what i have so far:

    @echo off
    SET /P AREYOUSURE=Are you SURE that you want to RESET This PC?                                    Type YES to proceed, otherwise press Enter.

    IF NOT "%AREYOUSURE%" == "YES" GOTO ESCAPE

    set path=%path%;d:\Apps\

    d:

    CD Ghost

    START /WAIT GHOST32.EXE -QUIET -RB -BATCH -SURE -CLONE,MODE=RESTORE,SRC=F:\Images\image.GHO,DST=1 

     

    What's happening is that the -BATCH command is causing the program to open then close almost instantly.  If i take that command completely out I'mt with having to interact with the prompts (partitions correct and proceed.)  The -BATCH command is the only command in the script that is causing the issues.  I have gone flag by flag and every other command works (except for the -sure command, i believe that is suppose to stop that partition question) and found that -BATCH is the culprit that causes the entire ghost console to open for a quick second than shutdown almost immediately after opening.  

     

    Also I'mging from a partitioned travel hard drive. The winpe, all the portable apps, and ghost are on one partition and the images are on another.  Like i stated before i can get this to work ONLY if the -BATCH switch isn't included, but that's the main part of the automation.

     

    What am i doing wrong in this sequence, everything works except for the main part which is needed for an almost complete NO TOUCH imaging process.

     

    Thank You in Advance.



  • 2.  RE: Creating Automated Ghost Disk

    Posted Apr 11, 2014 06:24 AM

    Try it without the START /WAIT command at the beginning of the string.  The risk with using this command is that if the Ghost launcher starts another process and then terminates, that line in the batch file then considers the process ended and continues on.