1.

Solve : file comparison or checklist?

Answer»

Code: [SELECT]@echo off
setlocal enabledelayedexpansion
SET today=%date:~10,4%%date:~4,2%%date:~7,2%
set count=0

for /f "tokens=3 delims=_" %%i in ('dir /o-d \output\wl_*%today%*.zip') do (
set match=n
for /f %%f in (simple.txt) do (
if %%i EQU %%f set match=y
)
if !match! EQU n (echo Lockbox: %%i ... RECEIVED -Not on list) else (echo Lockbox: %%i ... RECEIVED)
call set /a count+=1
)
echo File(s): %count%
Sweet! That worked. I'm sorry for the CONFUSION. I thought that the tokens were the number of delimiters in the file name, based upon the very first sample GIVEN. Thanks for the clarification. At least I learned something. Token is where your prize is LOCATED.



Discussion

No Comment Found