Code:
if not exist Ready md Ready
for %%g in (*.mkv) do (
ffmpeg -i %%g -r 0.1 Ready\%%g_%%04d.jpg
)
This is a simple batch script that I have setup to capture screenshots of a video file/files every 10 seconds (mainly using this for tv show episode caps).

What it currently does (if you are part of this forum you obviously know this) is copy all the screenshots from all the episodes in the directory into one folder - "Ready". What I want it to do is create a seperate folder for each episode/video file using the filename of the video file. So with "Dexter - New Blood (2021) S01E09 The Family Business.mkv" it would create a folder named "Dexter - New Blood (2021) S01E09 The Family Business" and load the screenshots into that folder for that video file. Then when it gets to "Dexter - New Blood (2021) S01E10 Sins of the Father.mkv" it would create a folder titled "Dexter - New Blood (2021) S01E10 Sins of the Father" and load the screenshots into that folder and so on.

Any help is greatly appreciated.