With the help of this forum I created a little batch script which runs a command for every mkv-file inside a specific folder and creates an output-file for every file while also increasing a counter. Now I want to expand on this that the script only runs for mkvs in that folder that contain the string *example*. How do you do this:
Code: Select all
@echo on
setlocal DisableDelayedExpansion
set /A fileCounter=0
for %%A in (*.mkv) do (
for /r %%A in (*example*) do ( <-- This is where I ran into problems.
set /A "fileCounter+=1"
set "name=%%A"
setlocal EnableDelayedExpansion
C:\System\Mediainfo\MediaInfo.exe --Inform=file://C:\System\Mediainfo\alphaVideo_template.txt "%%A" >> Output_!fileCounter!.txt
endlocal
)
)
exit