I'm working on a script to output the information given by mediainfo using a specific template.
I have a working script which merges every output together but now I want to customize it, so that for every mkv-file in my folder it creates a seperate output-file (for example if there are 7 mkvs I want 7 text-files with an increasing filename) but I've not managed to do so:
Code: Select all
@echo off
set /a fileCounter=0
for %%A in (*video*.mkv) do (
set /a fileCounter=fileCounter+1
C:\System\Mediainfo\MediaInfo.exe --Inform=file://debug.txt %%A
) >> Output_%fileCounter%.txt
exit