set src=%1 for /r %%a in (%src%) do echo %%a
set src=%1 for /r %%a in (%src%) do echo %%~na
echo %~n1
set src=%1 for /r %%a in (%src%) do echo %%~na.txt