Skip to content

Instantly share code, notes, and snippets.

--SCRenameでリネームし、.err, .program.txt, 録画済み情報の録画ファイルパスを変更する録画後実行bat用スクリプト
--SCRename.vbs のパス
SCRPATH='Tools\\SCRename\\SCRename.vbs'
--リネーム書式、録画タグで個別に設定可能
format='$SCtitle$ $SCpart$第$SCnumber$話 「$SCsubtitle$」 ($SCservice$)'
--録画タグに:SCRen:が含む場合:SCRen:の後ろから:hoge:の前までを書式として抽出(検索キーワードの:title:,:event:..を参考に実装)
--:SCRen:が含まれない場合は全体を書式として、空の場合上の書式を参照
format=env.BatFileTag=='' and format or env.BatFileTag:match(':SCRen:(.-):%w-:') or env.BatFileTag:match(':SCRen:(.*)') or env.BatFileTag