Search for filename and get full path and filename returned.
FOR /f "tokens=1,2,*" %a in ('dir /s %fileToCheck%') do if "%a %b" == "Directory of" SET pathAndFilename=%c\%fileToCheck%
Thanks to Leif Ole for this example
For every 1603 in the World
Search for filename and get full path and filename returned.
FOR /f "tokens=1,2,*" %a in ('dir /s %fileToCheck%') do if "%a %b" == "Directory of" SET pathAndFilename=%c\%fileToCheck%
Thanks to Leif Ole for this example