【发布时间】:2018-05-30 19:07:06
【问题描述】:
我有带有文件名的视频文件:
Series.Name.S01E01.andalotofstuff.mkv
Series.Name.S01E02.andalotofstuff.mkv
Series.Name.S02E01.andalotofstuff.mkv
etc.
其中andalotofstuff在每个文件中不一定相同,可以包括.、-和[]。
我也有带有文件名的字幕文件:
Series Name 1x01 - Episode Name andotherstuff.srt
Series Name 1x02 - Episode Name andotherstuff.srt
Series Name 2x01 - Episode Name andotherstuff.srt
etc.
其中andotherstuff在每个文件中不一定相同,可以包含()。
如果可能的话,我想要的是用相应的mkv 文件名用批处理脚本重命名srt 文件,但我不知道该怎么做。
一些真实的例子是:
Marvels.Agents.of.S.H.I.E.L.D.S05E04.720p.HDTV.x264-AVS[eztv].mkv
Marvel's Agents of S.H.I.E.L.D. 5x04 - A Life Earned (Español (Latinoamérica)).srt
The.Shannara.Chronicles.S02E08.720p.HDTV.x264-AVS[eztv].mkv
The Shannara Chronicles 2x08 - Amberle (Español (España)).srt
The.Shannara.Chronicles.S02E10.720p.HDTV.x264-KILLERS[eztv].mkv
The Shannara Chronicles 2x10 - Blood (English).srt
请注意,并非所有视频文件都有相应的字幕文件。
Here 我发现了一些应该可以在 linux 上运行的东西...
【问题讨论】:
标签: batch-file rename