Search found 21 matches

by AlphaInc.
10 Jul 2022 03:12
Forum: DOS Batch Forum
Topic: run mkvmerge through every file inside folder [SOLVED]
Replies: 2
Views: 3479

run mkvmerge through every file inside folder [SOLVED]

Hello everybody, not sure if this is the right sub for my question but still I'm taking the shot. I want to set up a batch script which runs through my entire folder and use mkvmerge to add a custom audio track to every mkv file inside this folder. This is my script: @echo on rem set preperations se...
by AlphaInc.
09 Aug 2021 13:25
Forum: DOS Batch Forum
Topic: CMD Sorting Syntax? [SOLVED]
Replies: 5
Views: 4758

Re: CMD Sorting Syntax?

Can I combine your script with mine and if yes, how ?
by AlphaInc.
09 Aug 2021 06:44
Forum: DOS Batch Forum
Topic: CMD Sorting Syntax? [SOLVED]
Replies: 5
Views: 4758

CMD Sorting Syntax? [SOLVED]

hello everybody, while working on my script that outputs mediainfo to a text-file for multiple videos and wanted to merge them together: set /A fileCounter=0 for %%A in (.mkv) do ( set /A "fileCounter+=1" set "name=%%A" setlocal EnableDelayedExpansion C:\System\Mediainfo\MediaInfo.exe --Inform=file:...
by AlphaInc.
09 Aug 2021 03:55
Forum: DOS Batch Forum
Topic: Repeating loop if file name contains string [SOLVED]
Replies: 3
Views: 4940

Re: Repeating loop if file name contains string

Yeah that worked. Thank you again.
by AlphaInc.
09 Aug 2021 02:23
Forum: DOS Batch Forum
Topic: Repeating loop if file name contains string [SOLVED]
Replies: 3
Views: 4940

Repeating loop if file name contains string [SOLVED]

Hello everybody, With the help of this forum I created a little batch script which runs a command for every mkv-file inside a specific folder and creates an output-file for every file while also increasing a counter. Now I want to expand on this that the script only runs for mkvs in that folder that...
by AlphaInc.
09 Aug 2021 02:05
Forum: DOS Batch Forum
Topic: Creating seperate output-files [SOLVED]
Replies: 4
Views: 3693

Re: Creating seperate output-files

Yeah I've just noticed that :D
Sorry and thank you.
by AlphaInc.
09 Aug 2021 00:57
Forum: DOS Batch Forum
Topic: Creating seperate output-files [SOLVED]
Replies: 4
Views: 3693

Re: Creating seperate output-files

Thanks for your reply, I hope you can still help me since it's a little while ago, I used this code but it doesn't work: @echo off &setlocal DisableDelayedExpansion rem This will grab information about the file set /a fileCounter=0 for %%A in (*.mkv) do ( set /a "fileCounter+=1" set "name=%%A" setlo...
by AlphaInc.
06 Aug 2021 14:37
Forum: DOS Batch Forum
Topic: Creating seperate output-files [SOLVED]
Replies: 4
Views: 3693

Creating seperate output-files [SOLVED]

Hello everybody, I'm working on a script to output the information given by mediainfo using a specific template. I have a working script which merges every output together but now I want to customize it, so that for every mkv-file in my folder it creates a seperate output-file (for example if there ...
by AlphaInc.
06 Aug 2021 13:52
Forum: DOS Batch Forum
Topic: Set Global and "local" Counter [SOLVED]
Replies: 5
Views: 4761

Re: Set Global and "local" Counter

Ah okay, that's how i set the counter. And do i implement "var" in a text file to increase ? I even have troubles to even increase the counter for fileCounter (as shown in my mediainfo-template. When I execute the script like that the line stays empty without anything. @echo off set /a fileCounter=0...
by AlphaInc.
06 Aug 2021 12:32
Forum: DOS Batch Forum
Topic: Set Global and "local" Counter [SOLVED]
Replies: 5
Views: 4761

Re: Set Global and "local" Counter

What I meant is to set a counter (With SET /B and SET /C I was trying to set a counter in the head of the tool and define it as 0 to later increase) When executing the commands listed in the script the counter should increase with every file (fileCounter) respectively every audio (audioCounter) and ...
by AlphaInc.
06 Aug 2021 04:56
Forum: DOS Batch Forum
Topic: Set Global and "local" Counter [SOLVED]
Replies: 5
Views: 4761

Set Global and "local" Counter [SOLVED]

Hello everybody, I have created a template for MediaInfo to output specific information about the video files inside a specific folder. The output will then be written to a txt-file. This is the command I Use: for %%A in (*.mkv) do C:\System\Mediainfo\MediaInfo.exe --Inform=file://C:\System\Mediainf...
by AlphaInc.
06 Aug 2021 02:28
Forum: DOS Batch Forum
Topic: UTF-8 encoding while replacing string [SOLVED]
Replies: 5
Views: 5035

Re: UTF-8 encoding while replacing string [SOLVED]

I'll try it, thank you.
But (for all who may run into something similar) found a workaround for that. I replaced the powershell command with a python script which replaces the string without having to deal with the encoding of the file. Maybe not ideal but it's good enough for my use case.
by AlphaInc.
05 Aug 2021 14:14
Forum: DOS Batch Forum
Topic: UTF-8 encoding while replacing string [SOLVED]
Replies: 5
Views: 5035

Re: UTF-8 encoding while replacing string

I don’t know, I created the txt file by using Mediainfo with a template and then output it (Mediainfo -Inform=file://template.txt Video.mkv >> Output.txt) to a text file.
by AlphaInc.
05 Aug 2021 12:10
Forum: DOS Batch Forum
Topic: UTF-8 encoding while replacing string [SOLVED]
Replies: 5
Views: 5035

UTF-8 encoding while replacing string [SOLVED]

Hello everybody, I recently set a mediaInfo script that outputs information about different media files inside a specific folder. Now after every output I need to change some strings in the created output. For that I use the following command: powershell -Command "(gc myFile.txt) -replace 'foo', 'ba...