

Rem Copy the boot files and WinPE WIM to the destination location
MKDIR COMMAND IN BATCH SCRIPT EXAMPLE WINDOWS
Rem Make sure the destination directory does not existĮcho ERROR: Destination directory exists: %2.Įcho ERROR: Unable to create destination: %2.Įcho =Įcho Creating Windows PE customization working directory Rem Make sure the appropriate winpe.wim is presentĮcho ERROR: WinPE WIM file does not exist: "%WIMSOURCEPATH%". Rem This check is only to be extra carefulĮcho ERROR: The following path for firmware files was not found: "%FWFILESROOT%".

Rem If the input architecture is validated, this directory must exist Rem Validate the boot app directory location Rem it means the architecture is not presentĮcho ERROR: The following processor architecture was not found: %WINPE_ARCH%. Rem If the source directory as per input architecture does not exist, Set WIMSOURCEPATH=%SOURCE%\en-us\winpe.wim Set FWFILESROOT=C:\Program Files (x86)\Windows Kits\Assessment and Deployment Kit\Deployment Tools\%WINPE_ARCH%\Oscdimg Set SOURCE=C:\Program Files (x86)\Windows Kits\Assessment and Deployment Kit\Windows Preinstallation Environment\%WINPE_ARCH% Rem Set environment variables for use in the script
