@echo off :SetInstallWIM echo Set the path to the parent folder set /p Source= C:\Windows\System32\Dism.exe /Split-Image /ImageFile:%Source%\Sources\install.wim /SWMFile:%Source%\Sources\install.swm /FileSize:4000 /CheckIntegrity SET /P AREYOUSURE=Split another install.wim? (Y/[N]) IF /I "%AREYOUSURE%" NEQ "Y" GOTO end goto SetInstallWIM :End set Source= exit