From 20ba564de351e05502beb22c6e9e1c75a74afbde Mon Sep 17 00:00:00 2001 From: "Michael H.G. Schmidt" Date: Sun, 28 Mar 2021 00:41:45 +0100 Subject: [PATCH] bugfix --- wim/export-image.cmd | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/wim/export-image.cmd b/wim/export-image.cmd index 3c2a3af..6e46cf7 100644 --- a/wim/export-image.cmd +++ b/wim/export-image.cmd @@ -30,8 +30,11 @@ if EXIST %ESD% ( if EXIST %WIM% ( + rem cleanup ... + del /F %W10PRO% 1>nul 2>nul + echo. - echo INFO: found %WIM% + echo INFO: found %WIM% echo exporting image from %WIM% ... dism /Export-Image ^ @@ -41,6 +44,7 @@ if EXIST %WIM% ( /Compress:Max ^ /CheckIntegrity + attrib -R %WIM% move /Y %W10PRO% %WIM% echo all done >%STATEFILE%