w10install/image/mount-boot.cmd

17 lines
394 B
Batchfile
Raw Normal View History

@echo off
set SOURCES=c:\TEMP\W10\sources
set BOOT=c:\TEMP\BOOT
2021-04-05 23:06:24 +02:00
rem cleanup ...
rd /S /Q %BOOT% 2>nul
echo creating wim mountpoint for BOOT ...
mkdir %BOOT% 1>nul 2>nul
2021-04-05 23:06:24 +02:00
echo set write access for boot.wim ...
attrib -R %SOURCES%\boot.wim
echo mounting boot.wim to %BOOT% ...
dism /Mount-Wim /WimFile:%SOURCES%\boot.wim /Name:"Microsoft Windows Setup (x64)" /MountDir:%BOOT%