Fix find path

This commit is contained in:
Andrea Cavalli 2020-10-25 15:32:40 +01:00
parent eff6a83004
commit 16b5b97f44

View File

@ -96,7 +96,7 @@ set "FIND_STR=!FIND_STR:~1,-1!"
set REPLACE_STR=%2 %3 set REPLACE_STR=%2 %3
set "REPLACE_STR=!REPLACE_STR:~1,-2!" set "REPLACE_STR=!REPLACE_STR:~1,-2!"
for /f "delims=" %%i in ('type "%OUT_PATH%" ^| find /n /v "" ^& break ^> "%OUT_PATH%" ') do ( for /f "delims=" %%i in ('type "%OUT_PATH%" ^| C:\Windows\System32\find.exe /n /v "" ^& break ^> "%OUT_PATH%" ') do (
set "line=%%i" set "line=%%i"
setlocal enableDelayedExpansion setlocal enableDelayedExpansion
set "line=!line:*]%FIND_STR%=%REPLACE_STR%!" set "line=!line:*]%FIND_STR%=%REPLACE_STR%!"