# Mkvmerge error since update

**URL:** <https://help.mkvtoolnix.download/t/mkvmerge-error-since-update/1300>\
**Category:** Help\
**Tags:** bug\
**Created:** [April 13, 2025, 11:54pm UTC](https://help.mkvtoolnix.download/t/mkvmerge-error-since-update/1300 "2025-04-13T23:54:21Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pierrou](https://help.mkvtoolnix.download/letter_avatar_proxy/v4/letter/p/e95f7d/32.png) [@Pierrou](https://help.mkvtoolnix.download/u/Pierrou)\
**Post date:** [April 13, 2025, 11:54pm UTC](https://help.mkvtoolnix.download/t/mkvmerge-error-since-update/1300/1 "2025-04-13T23:54:21Z")

</div>

Hi, I was using a small script to mux 2 files together (basically, you keep the video from one and everything else from the other file).

Here is the script:

```sh
for %%x in (S01R/*.mkv) do "C:\Program Files\MKVToolNix\mkvmerge.exe" -o "S01\%%~x" -D ("S01R\%%~x") -A -S -T -M -B --no-chapters ("S01V\%%~x")

```

I didn’t use it for few months and I updated to v91 recently. Today I get the error: `could not be opened for reading: open file error`

Is there any fix possible?

---

<div class="post-metadata">

**Author:** ![mbunkus](https://help.mkvtoolnix.download/user_avatar/help.mkvtoolnix.download/mbunkus/32/11_2.png) [@mbunkus](https://help.mkvtoolnix.download/u/mbunkus)\
**Post date:** [April 14, 2025, 8:28am UTC](https://help.mkvtoolnix.download/t/mkvmerge-error-since-update/1300/2 "2025-04-14T08:28:59Z")

</div>

A generic “open file error” usually means that the file name you specified doesn’t exist. There’s nothing to fix in MKVToolNix; it’s a usage error.

---

<div class="post-metadata">

**Author:** ![Pierrou](https://help.mkvtoolnix.download/letter_avatar_proxy/v4/letter/p/e95f7d/32.png) [@Pierrou](https://help.mkvtoolnix.download/u/Pierrou)\
**Post date:** [April 14, 2025, 10:21pm UTC](https://help.mkvtoolnix.download/t/mkvmerge-error-since-update/1300/3 "2025-04-14T22:21:41Z")

</div>

Well I thought about that but I used that script _a lot_ before updating MKVtoolnix and it was working fine.  
My files are stored in a folder like: `S01R/S01E01.mkv` and `S01V/S01E01.mkv` (V = video and R = rest) to avoid any space, special char, …

> [@mbunkus](#):
>
> it’s a usage error.

As you can see, it’s not a complicated script, it simply mux 2 files together and it was working like a charm before updating. So I wonder why, now, it can’t open the files anymore.

---

<div class="post-metadata">

**Author:** ![mbunkus](https://help.mkvtoolnix.download/user_avatar/help.mkvtoolnix.download/mbunkus/32/11_2.png) [@mbunkus](https://help.mkvtoolnix.download/u/mbunkus)\
**Post date:** [April 14, 2025, 10:25pm UTC](https://help.mkvtoolnix.download/t/mkvmerge-error-since-update/1300/4 "2025-04-14T22:25:07Z")

</div>

So what’s the full actual error message? 'cause you only posted part of it. Maybe that’ll shed some light on what’s different now on your end.

Additionally it would help to see the directory listings of both directories (the original ones, meaning screenshots, not you typing out the names, otherwise chances are you actually mistype something).

---

<div class="post-metadata">

**Author:** ![Pierrou](https://help.mkvtoolnix.download/letter_avatar_proxy/v4/letter/p/e95f7d/32.png) [@Pierrou](https://help.mkvtoolnix.download/u/Pierrou)\
**Post date:** [April 14, 2025, 10:58pm UTC](https://help.mkvtoolnix.download/t/mkvmerge-error-since-update/1300/5 "2025-04-14T22:58:03Z")

</div>

Sure! Here is a screenshot  
The error is in french but it’s: “Error: : The file “(S01R\S01E03.mkv)” could not be opened for reading: open file error”

 ![mkvmerge](https://help.mkvtoolnix.download/uploads/default/original/1X/5ed9c2c986b0ed1513ae1b5af8e7f8ba938b4830.jpeg)

**EDIT:** Never mind… I just realised by translating the error in english that I removed the spaces in the script and it was because of that… Since I didn’t use it for a long time, I thought it was a mistake I made.  
I realized it was trying to find a file called `(S01\S01E01.mkv)` with the parenthesis in the name.

So the script works fine if I put:

```sh
 for %%x in ( S01R/*.mkv ) do "C:\Program Files\MKVToolNix\mkvmerge.exe" -o "S01\%%~x" -D ( "S01R\%%~x" ) -A -S -T -M -B --no-chapters ( "S01V\%%~x" )

```

instead of

```sh
for %%x in (S01R/*.mkv) do "C:\Program Files\MKVToolNix\mkvmerge.exe" -o "S01\%%~x" -D ("S01R\%%~x") -A -S -T -M -B --no-chapters ("S01V\%%~x")

```

Sorry for the inconvenience 🫣

---

<div class="post-metadata">

**Author:** ![mbunkus](https://help.mkvtoolnix.download/user_avatar/help.mkvtoolnix.download/mbunkus/32/11_2.png) [@mbunkus](https://help.mkvtoolnix.download/u/mbunkus)\
**Post date:** [April 14, 2025, 11:10pm UTC](https://help.mkvtoolnix.download/t/mkvmerge-error-since-update/1300/6 "2025-04-14T23:10:45Z")

</div>

No worries. Glad you figured it out!
