I have several VOB
-files on a DVD.
The command
(for %i in (D:\VIDEO_TS\*.VOB) do @echo file '%i') > filelist.txt
in the Windows cmd command line returns filelist.txt
with
file 'D:\VIDEO_TS\VIDEO_TS.VOB'
file 'D:\VIDEO_TS\VTS_01_0.VOB'
file 'D:\VIDEO_TS\VTS_01_1.VOB'
file 'D:\VIDEO_TS\VTS_01_2.VOB'
file 'D:\VIDEO_TS\VTS_01_3.VOB'
file 'D:\VIDEO_TS\VTS_01_4.VOB'
file 'D:\VIDEO_TS\VTS_02_1.VOB'
inside. These are exactly the VOB
-files located in D:\Video_TS
.
Question: How do I have to change the command syntax if I only want the files highlighted here in the list, that is only those with the endings 01_1, 01_2, 01_3, 01_4
?
That means that filelist.txt
is only
file 'D:\VIDEO_TS\VTS_01_1.VOB'
file 'D:\VIDEO_TS\VTS_01_2.VOB'
file 'D:\VIDEO_TS\VTS_01_3.VOB'
file 'D:\VIDEO_TS\VTS_01_4.VOB'
at the end.
PS: I tried command from that link https://ss64.com/nt/for.html but I don't get the correct one. I'm not familiar with the cmd syntax.
01_1
...01_4
are not extensions first of all. Secondly, what is your exact requirement? Anything that has format of01_1
at the end of non-extension part of file name, higher than01_0
and smaller than02_0
? And lastly, what did you try?(for /L %i in (1,1,4) do @echo file 'D:\VIDEO_TS\VTS_01_%i.VOB') > filelist.txt
VTS_01_*.VOB
files, e.g. 1..3 only or 1..5. See the first comment.