The windows %%f returns the full name of the file as 'filename.ext'
e.g.
for /r %%f in (*.wav) do echo %%f
Is there a way to extract the filename without the extension from %%f?
|
The windows %%f returns the full name of the file as 'filename.ext' e.g.
Is there a way to extract the filename without the extension from %%f?
| |||
|
feedback
|
|
Change echo %%f to echo %%~nf. ~n tells the cmd to expand f to equal only the filename, minus the extension. | |||||||||
feedback
|