for /r %f in (*) do echo %f
Gives the output filename along with the entire path
\path\to\dir\<filename>
How do i get just the <filename>
without the path included? I need to use that 'filename' string.
Also, is it possible to do the following, once the filename is acquired?
for /r %%f in (*) do (
echo "blah blah blah 'filename'" >> blahblah_filename.txt
)
for
command.