ask for wim files...

This commit is contained in:
Michael H.G. Schmidt 2022-10-04 14:03:06 +02:00
parent fd67107dd7
commit 05f6600b9a

View File

@ -37,8 +37,22 @@ echo using image %ISOFILE% ...
echo mounting disk image (iso) with powershell ...
powershell Mount-DiskImage -ImagePath %ISOFILE%
echo copying files from image to targetpath %USBDRIVE% ...
robocopy \\.\CDROM0 %USBDRIVE% /MIR /256 /NFL /NDL /R:10 /XF *.wim /XF *.esd
set answer=
:askyes
set /p answer="COPY windows image (WIM) files (Y/N)? "
if /i "%answer:~,1%" EQU "Y" (
echo copying files from image to targetpath %USBDRIVE% ...
robocopy \\.\CDROM0 %USBDRIVE% /MIR /256 /NFL /NDL /R:10
GOTO CONT
)
if /i "%answer:~,1%" EQU "N" (
echo copying files from image to targetpath %USBDRIVE% ...
robocopy \\.\CDROM0 %USBDRIVE% /MIR /256 /NFL /NDL /R:10 /XF *.wim /XF *.esd
goto CONT
)
echo Please type Y or N.
goto askyes
:CONT
echo unmounting disk image (iso) ...
powershell Dismount-Diskimage -ImagePath %ISOFILE%