@EcHO OFF ClS :: ######## BOOTDRIVE searching for the drive letter of the disk that was booted from with the windrivers folder. for %%f in (C D E F G H I J K L M N O P Q R S ) do if exist %%f:\WINDRIVERS\ set BOOTDRIVE=%%f: :: #################### MENU OPTIONS ################### :MENU cls COLOR 1E ECHO. ECHO ___ ECHO _/ "\ 1 To deploy XP automagically ECHO( \ ~/__ 2 This option is on back order check back soon ECHO \ \__)3 To run Ghost32 ECHO / \ 4 To join a GhostCast session #1 automatic and then reboot ECHO/ _\ 5 To quit and reboot ECHO `"""""`` ECHO. SET /P M=Select 1,-5 if you dare and press ENTER: IF %M%==1 GOTO XP IF %M%==2 GOTO VISTA IF %M%==3 GOTO GHOST IF %M%==4 GOTO Ghostcast IF %M%==5 GOTO REBOOT :: ###################################################### :: ################### Option 1 Start ################### :: ###################################################### :: # 1 Deploy XP automagically :: # 2 Run Deployanywhere :: # 3 Run Ghostwalker :: # 4 Rebooot :XP @cls Echo Please Hold :: #### 1 Deploy XP from \xp\image.gho to disk 1 #### @%BOOTDRIVE% @CD \GHOST @Ghost32 -clone,mode=restore,src=%BOOTDRIVE%\xp\image.gho,dst=1 -batch -fx :: #### 2 Run Deployanywhere #### :: # OSDRIVE search for the boot.txt that must be in the root of the restored image. @for %%f in (C D E F G H I J K L M N O P Q R S) do if exist %%f:\boot.txt set OSDRIVE=%%f: Echo Please Hold :: # Deployanywhere with the target of OSDRIVE @cls Echo Please Hold @ghdplyaw32.exe /target=%OSDRIVE%\Windows /ddb=%BOOTDRIVE%\WINDRIVERS @cls Echo Please Hold :: #### 3 Run Ghostwalker command :: GhWalk32.exe /CN="PC" /batch :: #### 4 Reboot using the Pe Reboot command @cls Please remove the USB drive. @pause @WPEUTIL Reboot :: ###################################################### :: ################### Option 2 Start ################### :: ###################################################### :: # 2 Deploy Vista automagically :: # 3 Run Deployanywhere :: # 4 Run Ghostwalker :: # 5 Rebooot :VISTA @cls ECHO This item is still on back order please check back soon. Pause GOTO :MENU :: ###################################################### :: ################### Option 3 Start ################### :: ###################################################### :: # 1 Start Ghost32.exe :GHOST :: #### 1 Start Ghost32.exe #### @cls Echo Please Hold %BOOTDRIVE% CD \GHOST Ghost32.exe :: ###################################################### :: ################### Option 4 Start ################### :: ###################################################### :: # 1 Start Ghost32.exe and join session 1 Automatic :: # 2 Reboot :GHOSTcast :: #### 1 Start Ghost32.exe #### %BOOTDRIVE% @CD \GHOST @Ghost32.exe -ja=1 -sure :: #### 2 Reboot using the Pe Reboot command #### @cls Please remove the USB drive. @pause @WPEUTIL Reboot :: ###################################################### :: ################### Option 5 Start ################### :: ###################################################### :: # 1 Reboot :REBOOT :: #### 1 Reboot using the Pe Reboot command #### @cls Please remove the USB drive. @pause @WPEUTIL Reboot