Not sure what Im missing

September 4, 2011 at 16:25:52
Specs: Windows 7
Can someone help me with this script basically i am using it for making images I am trying to make it easier basically i use an imagex disk and an external hard drive with the images on it normally i just run these commands Diskpart>select disk 0>clean>create partition 1>format fs=ntfs label="system">assign letter=S>active>create partition primary>select partition 2> format fs=ntfs label="windwos"quick>assign letter=c>exit>D:\imagex.exe /apply f:\w7office2010\IMAGENAME.wim 1 c:>c:\windows\system32\bcdboot c:\windows

Here is the script i wrote what am i missing

@echo off
title Multiple Choice Menu
:home
cls
echo.
echo Select an Image:
echo =============
echo.
echo 1) HP EliteBook 8440P x86 (Office 2007)
echo 2) HP EliteBook 8440P HR Image
echo 3) HP EliteBook 8440P x86 (Office 2010)
echo 4) HP EliteBook 8440P x64 (USE 64-BIT WINPE DISK!)
echo 5) HP EliteSFF 8000 x86 (Office 2007)
echo 6) HP EliteSFF 8000 x86 (Office 2010)
echo 7) HP EliteSFF 8000 x64 (USE 64-BIT WINPE DISK!)
echo 8) HP EliteBook 2530P x86 (Office 2007)
echo 9) HP EliteBook 2530P x86 (Office 2010)
echo 10) HP EliteBook 2530P x64 (USE 64-BIT WINPE DISK!)
echo 11) Dell Latitude E6400 x86 (Office 2010)
echo 12)
echo 13) Exit
echo.
set /p web=Type option:
if "%web%"=="1" goto hpeb8440px86off07
if "%web%"=="2" goto hpeb8440phr
if "%web%"=="3" goto hpeb8440px86off10
if "%web%"=="4" goto hpeb8400px64
if "%web%"=="5" goto hpesff8000x86off07
if "%web%"=="6" goto hpesff8000x86off10
if "%web%"=="7" goto hpesff8000x64
if "%web%"=="8" goto hpeb2530px86off07
if "%web%"=="9" goto hpeb2530px86off10
if "%web%"=="10" goto hpeb2530px68
if "%web%"=="11" goto dllte6400x86off10
if "%web%"=="12" goto
if "%web%"=="13" exit
goto home

:checkdisk
If exist E:\images\disk.txt GOTO :normal
If exist F:\images\disk.txt GOTO :oddcheck


:oddcheck
If exist D:\imagex.exe GOTO odd1
If exist E:\imagex.exe GOTO odd2


:normal
diskpart /s E:\images\disk.txt
D:\imagex.exe /apply F:\W7OFFICE2010\%image% 1 C:
%bcd%
goto home

:odd1
diskpart/s F:\images\disk.txt
D:\imagex.exe /apply F:\W7OFFICE2010\%image% 1 C:
%bcd%
goto home

:odd2
diskpart/s F:\images\disk.txt
E:\imagex.exe /apply F:\W7OFFICE2010\%image% 1 C:
%bcd%
goto home


:hpeb8440px86off07
set image=8440pW7Entx86Off07.wim
set bcd=C:\windows\system32\bcdboot C:\windows
goto checkdisk

:hpeb8440phr
set image=hr.wim
set bcd=C:\windows\system32\bcdboot C:\windows
goto checkdisk

:hpeb8440px86off10
set image=8440pW7EntOf10.wim
set bcd=C:\windows\system32\bcdboot C:\windows
goto checkdisk

:hpeb8400px64
set image=8440pv3x64.wim
set bcd=bcdboot C:\windows
goto checkdisk

:hpesff8000x86off07
set image=8000W7Entx86Off07.wim
set bcd=C:\windows\system32\bcdboot C:\windows
goto checkdisk

:hpesff8000x86off10
set image=8000W7Entx86Off10.wim
set bcd=C:\windows\system32\bcdboot C:\windows
goto checkdisk

:hpesff8000x64
set image=8000W7Entx64.wim
set bcd=bcdboot C:\windows
goto checkdisk

:hpeb2530px86off07
set image=2530pW7Entx86Off07.wim
set bcd=C:\windows\system32\bcdboot C:\windows
goto checkdisk

:hpeb2530px86off10
set image=2530pW7Entx86Off10.wim
set bcd=C:\windows\system32\bcdboot C:\windows
goto checkdisk

:hpeb2530px64
set image=2530pW7Entx64.wim
set bcd=bcdboot C:\windows
goto checkdisk

:dllte6400x86off10
set image=e6400W7Entx86Off10.wim
set bcd=C:\windows\system32\bcdboot C:\windows
goto checkdisk


See More: Not sure what Im missing

Report •


#1
September 5, 2011 at 14:59:36
Not sure what Im missing
Punctuation.

How To Ask Questions The Smart Way


Report •
Related Solutions


Ask Question