Search found 12 matches

by Highlander
12 Dec 2020 12:37
Forum: DOS Batch Forum
Topic: Add Filename (minus the .mkv) as a Title to a folder of Matroska videos
Replies: 18
Views: 13718

Re: Add Filename (minus the .mkv) as a Title to a folder of Matroska videos

Just Googled some of these things and I'm beginning to understand how they work.

Thanks again,
by Highlander
12 Dec 2020 12:05
Forum: DOS Batch Forum
Topic: Add Filename (minus the .mkv) as a Title to a folder of Matroska videos
Replies: 18
Views: 13718

Re: Add Filename (minus the .mkv) as a Title to a folder of Matroska videos

That seems to work a treat! lol I have no idea how, lol. The "chcp 1252", the "delims= and the "('dir /a-d /b /s *.mkv')" all leave me utterly confused, lol. I guess I'll just have to go off and learn how all these script commands, syntax & arguments all work However, your code seems to do exactly ...
by Highlander
12 Dec 2020 11:44
Forum: DOS Batch Forum
Topic: Add Filename (minus the .mkv) as a Title to a folder of Matroska videos
Replies: 18
Views: 13718

Re: Add Filename (minus the .mkv) as a Title to a folder of Matroska videos

Yes the options.json file is important. It does other things besides populating the title field (though it could). The original code was written by someone to alter various things in the MKV file but it does the same thing to every file it processes. (Things like setting the Language, Default, Forc...
by Highlander
12 Dec 2020 10:59
Forum: DOS Batch Forum
Topic: Add Filename (minus the .mkv) as a Title to a folder of Matroska videos
Replies: 18
Views: 13718

Re: Add Filename (minus the .mkv) as a Title to a folder of Matroska videos

I'm not sure how to change the batch now. Are you suggesting I remove the bit that creates a new destination folder ("mkvmerge_out") altogether. Does this now delete the originals?
by Highlander
12 Dec 2020 10:31
Forum: DOS Batch Forum
Topic: Add Filename (minus the .mkv) as a Title to a folder of Matroska videos
Replies: 18
Views: 13718

Re: Add Filename (minus the .mkv) as a Title to a folder of Matroska videos

PS: Please just forget the recursion.

On reflection, it's better (safer?) if I just do this one folder at a time, lol.
by Highlander
12 Dec 2020 10:27
Forum: DOS Batch Forum
Topic: Add Filename (minus the .mkv) as a Title to a folder of Matroska videos
Replies: 18
Views: 13718

Re: Add Filename (minus the .mkv) as a Title to a folder of Matroska videos

Hi Steffen, Thanks for your suggestions. Here is the original code (written by someone else, of course) that I am trying to modify to do what I want. @echo off set mkvmerge="C:\Program Files\MKVToolNix\mkvmerge.exe" if not exist "options.json" ( echo Options file 'options.json' not found. Exiting. ...
by Highlander
12 Dec 2020 09:36
Forum: DOS Batch Forum
Topic: Add Filename (minus the .mkv) as a Title to a folder of Matroska videos
Replies: 18
Views: 13718

Re: Add Filename (minus the .mkv) as a Title to a folder of Matroska videos

Thanks, I'll certainly try what you suggest.

The recursion into sub-folders isn't that important. If I can get it to work on just one folder then I'll be more than happy. :D
by Highlander
12 Dec 2020 08:58
Forum: DOS Batch Forum
Topic: Add Filename (minus the .mkv) as a Title to a folder of Matroska videos
Replies: 18
Views: 13718

Re: Add Filename (minus the .mkv) as a Title to a folder of Matroska videos

Yes, the output path would be the current folder. The idea is to run the batch file in the folder where the videoes are stored (and, hopefully, recurse the operation in any/all sub-folders that are in that dir3ectory too) How would that affect your code suggestion (if at all)? Also, the filenames ar...
by Highlander
12 Dec 2020 08:12
Forum: DOS Batch Forum
Topic: Add Filename (minus the .mkv) as a Title to a folder of Matroska videos
Replies: 18
Views: 13718

Add Filename (minus the .mkv) as a Title to a folder of Matroska videos

INFO.BAT version 1.5 -------------------------------------------------------------------------------- Windows version : Microsoft Windows [Version 10.0.19042.685] Product name : Windows 10 Pro, 64 bit Performance indicators : Processor Cores: 4 Visible RAM: 8268000 kilobytes Date/Time format : (dd/...