1) When fk.txt not empty, and filter the missing ones from the comparison between fk.txt and fk_found.txt and
output to missed_fk_schemes.txt
2) When fk.txt not empty, but fk_found.txt empty, then just type fk.txt to missed_fk_schemes.txt
Code: Select all
call C:\auto_pkg_build\Scripts\scheme_replace\varconfig.cmd
call C:\auto_pkg_build\Scripts\scheme_replace\schpak.cmd
set VAR16=%VAR16: =%
set VARfk=%VARfk: =%
cd C:\auto_pkg_build\Sources\Source_schemes\%VAR16%\temp
if exist missed_fk_schemes.txt (del missed_fk_schemes.txt)
(for /f %%i in ("fk.txt") do set size=%%~zi
if %size% gtr 0 type fk.txt|findstr /vig:fk_found.txt >>missed_fk_schemes.txt
for /f %%i in ("fk_found.txt") do set size=%%~zi
if %size% equ 0 type fk.txt >>missed_fk_schemes.txt)
if %size% gtr 0 type fk.txt|findstr /vig:fk_found.txt >>missed_fk_schemes.txt
for /f %%i in ("fk_found.txt") do set size=%%~zi
if %size% equ 0 type fk.txt >>missed_fk_schemes.txt)
I thought this bracket above in bold should work as one block??
Thanks