Hi Squashman,
I play around with few fiddles, and manage to get it work... below are some comments of how it works, correct me if I am wrong
@echo off
FOR /F "tokens=1* delims= " %%G IN ('find /I "received pdf" ^<abc.txt') DO (
[HDragon] this line looks for "received pdf" line and execute a search for the first instance (token=1) it sees the delimiter default of <space>
question -> how to specify a delimiter of a full stop <.>
set "fn=%%H"
setlocal enabledelayedexpansion
set "fn=!fn:~3!"
echo !fn!>>abc-out.txt
endlocal
[Hdragon] can you explain the 5 lines above ? I know the <~3 > does some sort of spacing count
I have been trying to look for a URL that give tutorials into all these command, do you have one to recommend ?
)