From fa55b383d0b0c1b6af00be47a1b835d58c77e7d2 Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Sun, 28 Mar 2021 00:10:18 +0100 Subject: [PATCH] esd / wim ??? --- wim/export-image.cmd | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/wim/export-image.cmd b/wim/export-image.cmd index e490336..f0f768a 100644 --- a/wim/export-image.cmd +++ b/wim/export-image.cmd @@ -1,28 +1,29 @@ @echo off set SOURCES=c:\TEMP\W10\sources -set WIM=%SOURCES%\install +set ESD=%SOURCES%\install.esd +set WIM=%SOURCES%\install.wim -if NOT EXIST %WIM%.esd ( +if NOT EXIST %ESD% ( echo. - echo [%0] WARNING: %WIM%.esd NOT found! + echo [%0] WARNING: %ESD% NOT found! rem search for "install.wim" ... - if NOT EXIST %WIM%.wim ( - echo [%0] ERROR: %WIM%.wim also NOT found! + if NOT EXIST %WIM% ( + echo [%0] ERROR: %WIM% also NOT found! exit /b ) else ( rem rename WIM file ... - move /Y %WIM%.wim %WIM%-orig.wim + move /Y %WIM% %SOURCES%\install-orig.wim ) ) echo deleting "old" install.wim ... -del %WIM%.wim 1>nul 2>nul +del %WIM% 1>nul 2>nul -echo exporting image from %WIM%-orig.wim ... +echo exporting image from %SOURCES%\install-orig.wim ... dism /Export-Image ^ - /SourceImageFile: %WIM%-orig.wim ^ - /DestinationImageFile:%WIM%.wim ^ + /SourceImageFile: %SOURCES%\install-orig.wim ^ + /DestinationImageFile:%WIM% ^ /SourceName:"Windows 10 Pro" ^ /Compress:None ^ /CheckIntegrity