You can call the script below and then filter what you want using find command as follows:
REM Display relative file path of all files from current directory. REM Then select file paths that contain ".doc" CALL relative_file_path.bat | find /I ".doc"
relative_file_path.bat
@ECHO OFF REM Display relative file path of all files from the current directory SETLOCAL DisableDelayedExpansion SET "r=%__CD__%" FOR /R . %%F IN (*) DO ( SET "p=%%F" SETLOCAL EnableDelayedExpansion ECHO(!p:%r%=! ENDLOCAL )