improvements
This commit is contained in:
parent
3d156a9c95
commit
68e2b57e2c
@ -1,7 +1,9 @@
|
||||
@echo off
|
||||
set COPY_IMAGE=null
|
||||
|
||||
IF %1.==. GOTO USAGE
|
||||
IF %2.==. GOTO USAGE
|
||||
IF "%~3" NEQ "" set COPY_IMAGE=%3
|
||||
|
||||
echo.
|
||||
echo ====================
|
||||
@ -37,8 +39,13 @@ 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
|
||||
if /I %COPY_IMAGE% == /W (
|
||||
echo copying files from image to targetpath %USBDRIVE% ...
|
||||
robocopy \\.\CDROM0 %USBDRIVE% /MIR /256 /NFL /NDL /R:10
|
||||
) else (
|
||||
echo copying files from image to targetpath %USBDRIVE% ...
|
||||
robocopy \\.\CDROM0 %USBDRIVE% /MIR /256 /NFL /NDL /R:10 /XF *.wim
|
||||
)
|
||||
|
||||
echo unmounting disk image (iso) ...
|
||||
powershell Dismount-Diskimage -ImagePath %ISOFILE%
|
||||
@ -52,7 +59,8 @@ rem =====
|
||||
GOTO END
|
||||
|
||||
:USAGE
|
||||
echo "usage: %0 <USBDRIVE> <ISOFILE>"
|
||||
|
||||
echo "usage: %0 <USBDRIVE> <ISOFILE> [/w]"
|
||||
echo /w = copy windows images to target
|
||||
echo.
|
||||
:END
|
||||
|
||||
|
@ -14,6 +14,7 @@ for %%E in (
|
||||
puttygen.exe
|
||||
rufus.exe
|
||||
Windows-ISO-Downloader.exe
|
||||
MediaCreationTool20H2.exe
|
||||
|
||||
) do (
|
||||
|
||||
|
BIN
scripts/startmenu/MediaCreationTool20H2.lnk
Normal file
BIN
scripts/startmenu/MediaCreationTool20H2.lnk
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user