2021-03-16 23:51:45 +01:00
|
|
|
@echo off
|
2023-01-12 19:07:28 +01:00
|
|
|
set SOURCES=c:\TEMP\W10\sources
|
2021-03-16 23:51:45 +01:00
|
|
|
|
2022-12-29 10:49:17 +01:00
|
|
|
rem check for the image directory ...
|
|
|
|
if NOT EXIST image (
|
|
|
|
echo ERROR: directory [ image ] NOT FOUND!
|
2021-03-16 23:51:45 +01:00
|
|
|
echo ABORT.
|
|
|
|
exit /b
|
|
|
|
) else (
|
2022-12-29 10:49:17 +01:00
|
|
|
cd image
|
2021-03-16 23:51:45 +01:00
|
|
|
)
|
|
|
|
|
2023-01-12 15:28:17 +01:00
|
|
|
rem check for wim file ...
|
|
|
|
if NOT EXIST %SOURCES%\boot.wim (
|
|
|
|
echo ERROR: [ %SOURCES%\boot.wim ] NOT FOUND!
|
|
|
|
cd ..
|
|
|
|
exit /b
|
|
|
|
)
|
|
|
|
|
2022-12-25 20:52:46 +01:00
|
|
|
echo =========================================
|
|
|
|
echo START of BOOT image creation process ...
|
|
|
|
echo =========================================
|
2021-03-16 23:51:45 +01:00
|
|
|
echo.
|
|
|
|
|
|
|
|
rem start scripts
|
|
|
|
for %%S in (
|
|
|
|
|
|
|
|
mount-boot.cmd
|
|
|
|
finish-boot.cmd
|
|
|
|
|
|
|
|
) do (
|
|
|
|
|
|
|
|
echo ########## calling [ %%S ] ##########
|
|
|
|
call %%S
|
|
|
|
echo.
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
rem go back ...
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
echo.
|
2021-03-17 00:22:50 +01:00
|
|
|
echo ======
|
|
|
|
echo READY.
|
|
|
|
echo ======
|
2021-03-16 23:51:45 +01:00
|
|
|
|