|Hi Gus - here's a script which will move the text files in both sets of files just in case your client starts mixing them. Leave you to amend paths\filenames to suit, do the testing, and to write the Move command line.|
pushd %temp%\invoices\||echo Pushd failed - job terminated&&exit /b
pushd %temp%\temp\||echo Pushd failed - job terminated&&exit /b
for /f "tokens=*" %%1 in ('dir /b /a-d *.txt') do (
set /p line1=<%%1
if /i "!line1:~1,14!" equ "invoice number" echo moving %%1
Did you Google for an answer before asking the question?