I have the following batch script from Wikipedia:
@echo off
for /R "C:\Users\Admin\Ordner" %%f in (*.flv) do (
echo %%f
)
pause
I learned here that %%~nf returns just the filename without the extension.
Now I just wanted to remove (Video) from the filenames (%%~nf).
How could I do that?
Try this:
Take a look at the following link to learn about removing a substring using string substitution:
http://www.dostips.com/DtTipsStringManipulation.php#Snippets.Remove