diff --git a/patch-iso.bat b/patch-iso.bat index 31bad5f..31d402d 100644 --- a/patch-iso.bat +++ b/patch-iso.bat @@ -5,7 +5,7 @@ set tweakdir=%workdir%tweaks cd /d %workdir% :: expanding path with prerequisites -for /d %%i in (bin\*) do set path=%cd%\%%i;!path! +for /d %%i in ("bin\*") do set path=%cd%\%%i;!path! :: clearing temporary data if exist "tmp" ( @@ -64,7 +64,7 @@ if "%2" == "console" ( echo. echo. echo -- applying files to windows image -- -for /d %%t in (%tweakdir%\*) do ( +for /d %%t in ("%tweakdir%\*") do ( call "applyTweakWim.bat" "%%t" ) @@ -77,7 +77,7 @@ for %%r in (tmp\wim\windows\system32\config\*) do ( reg load HKLM\OPUS-NT_TMP "%%r" echo. echo running tweaks for %%~nr... - for /d %%t in (%tweakdir%\*) do ( + for /d %%t in ("%tweakdir%\*") do ( call "applyTweakReg.bat" "%%t" "%%r" ) echo unmounting: %%r @@ -89,7 +89,7 @@ echo. echo mounting: tmp\wim\Users\Default\NTUSER.DAT reg load HKLM\OPUS-NT_TMP "tmp\wim\Users\Default\NTUSER.DAT" echo running tweaks for NTUSER... -for /d %%t in (%tweakdir%\*) do ( +for /d %%t in ("%tweakdir%\*") do ( call "applyTweakReg.bat" "%%t" "NTUSER" ) echo unmounting: tmp\wim\Users\Default\NTUSER.DAT @@ -98,7 +98,7 @@ reg unload HKLM\OPUS-NT_TMP echo. echo. echo -- applying scripts -- -for /d %%t in (%tweakdir%\*) do ( +for /d %%t in ("%tweakdir%\*") do ( call "applyTweakScript.bat" "%%t" ) @@ -110,7 +110,7 @@ dism /unmount-image /mountdir:"tmp\wim" /commit echo. echo. echo -- applying files to disc-image -- -for /d %%t in (%tweakdir%\*) do ( +for /d %%t in ("%tweakdir%\*") do ( call "applyTweakIso.bat" "%%t" )