Script startup BartPE in Windows PE Posted December 22, 2010 Have to say thanks for this thread is been really great in getting me to where i wanted to be!!!! Ive done a bit of work on the scripting of ghost for different images so i thought id share! heres whats in my menu.bat file......youll need to change the menu option namesthen the GOTO headings (HP8100ma)The path to your ghost32.exe (mines ghost11)and the path to your image (src=G:\DELL745\745F.GHO) (G: is my mapped drive that has the ghost images)---------------------------------------------------------------------------------------@echo offCLSecho Main Menu:echo Please select the system and Image to Ghost.:loopecho A HP 8100 - Main imageecho B HP 8100 - Summationecho C HP 7800 - Main Imageecho D Dell 745 - Main Imageecho Q QuitSET /P Choice=Type the letter and press Enter: :: The syntax in the next line extracts the substring:: starting at 0 (the beginning) and 1 character longIF NOT '%Choice%'=='' SET Choice=%Choice:~0,1%IF /I '%Choice%'=='A' GOTO HP8100maIF /I '%Choice%'=='B' GOTO HP8100SUIF /I '%Choice%'=='C' GOTO HP7800MAIF /I '%Choice%'=='D' GOTO Dell745MIF /I '%Choice%'=='Q' GOTO EndECHO "%Choice%" is not valid. Please try again.ECHO.GOTO Loop:: =================================:HP8100maX:\Programs\ghost11\ghost32.exe -clone,mode=prestore,src=G:\HP810\810F.GHO:1,dst=1:1 -sureGOTO end:: =================================:HP8100SUX:\Programs\ghost11\ghost32.exe -clone,mode=prestore,src=G:\HP810\810S.GHO:1,dst=1:1 -sureGOTO end:: =================================:HP7800MAX:\Programs\ghost11\ghost32.exe -clone,mode=prestore,src=G:\HP780\780F.GHO:1,dst=1:1 -sureGOTO end:: =================================:Dell745MX:\Programs\ghost11\ghost32.exe -clone,mode=prestore,src=G:\DELL745\745F.GHO:1,dst=1:1 -sureGOTO end:: =================================:endpause-----------------------------------------------------------------------------------------------Hope this helps :-)any questions just ask!!! 0
Script startup BartPE
in Windows PE
Posted
Have to say thanks for this thread is been really great in getting me to where i wanted to be!!!!
Ive done a bit of work on the scripting of ghost for different images so i thought id share! heres whats in my menu.bat file......
youll need to change the menu option names
then the GOTO headings (HP8100ma)
The path to your ghost32.exe (mines ghost11)
and the path to your image (src=G:\DELL745\745F.GHO) (G: is my mapped drive that has the ghost images)
---------------------------------------------------------------------------------------
@echo off
CLS
echo Main Menu:
echo Please select the system and Image to Ghost.
:loop
echo A HP 8100 - Main image
echo B HP 8100 - Summation
echo C HP 7800 - Main Image
echo D Dell 745 - Main Image
echo Q Quit
SET /P Choice=Type the letter and press Enter:
:: The syntax in the next line extracts the substring
:: starting at 0 (the beginning) and 1 character long
IF NOT '%Choice%'=='' SET Choice=%Choice:~0,1%
IF /I '%Choice%'=='A' GOTO HP8100ma
IF /I '%Choice%'=='B' GOTO HP8100SU
IF /I '%Choice%'=='C' GOTO HP7800MA
IF /I '%Choice%'=='D' GOTO Dell745M
IF /I '%Choice%'=='Q' GOTO End
ECHO "%Choice%" is not valid. Please try again.
ECHO.
GOTO Loop
:: =================================
:HP8100ma
X:\Programs\ghost11\ghost32.exe -clone,mode=prestore,src=G:\HP810\810F.GHO:1,dst=1:1 -sure
GOTO end
:: =================================
:HP8100SU
X:\Programs\ghost11\ghost32.exe -clone,mode=prestore,src=G:\HP810\810S.GHO:1,dst=1:1 -sure
GOTO end
:: =================================
:HP7800MA
X:\Programs\ghost11\ghost32.exe -clone,mode=prestore,src=G:\HP780\780F.GHO:1,dst=1:1 -sure
GOTO end
:: =================================
:Dell745M
X:\Programs\ghost11\ghost32.exe -clone,mode=prestore,src=G:\DELL745\745F.GHO:1,dst=1:1 -sure
GOTO end
:: =================================
:end
pause
-----------------------------------------------------------------------------------------------
Hope this helps :-)
any questions just ask!!!