External editor problem in BS v7

Dear Colleague,

With the v7 update, unfortunately, only a portion of the configured external editor programs are functioning.
To gather information, we conducted numerous tests.
In several cases, instead of .exe files, we used .bat or .cmd files to pass additional parameters, which would then call the appropriate program’s .exe file with parameters, e.g., C:\Program Files (x86)\Far2\Far.exe" /e "%~1.

The primary reason for this is that within BS, only a direct file (such as an .exe) can be specified for an external editor, but parameters cannot be added. Therefore, it is necessary to call the required program with complete commands in a .bat file.

In v6 BS, calling .bat files worked perfectly. However, in v7, it seems that .bat files are not being executed at all. We suspect this because we attempted to log the execution process to see what happens, but nothing occurs.

We tried calling Python scripts, converting .bat files to .exe, and running BS in administrator mode, but all attempts failed.

My question is whether you could investigate what has changed in v7 compared to v6 regarding external editor launches so that we can determine what solutions are available for running custom files, such as .bat.

Thank you,
Ernő Kovács

I just checked this, and my .bat file for loading Affinity Designer isn’t working anymore.

We are investigating the problem. If you can send us the bat files you are using it will help us a lot in fixing the issue.

1 Like

Affinity-launcher

And this is the code for the .bat file:

start C:\AffinityPhoto2.exe -a Designer2 %1
exit

If it helps, this is were I got the .exe file:
https://forum.affinity.serif.com/index.php?/topic/170283-affinity-photo-v2-exe-file-location/&do=findComment&comment=983460

Hello Martin,

Below is the source code of my .bat file, which is very similar to Cary’s code. Perhaps it’s helpful to mention that we also implemented file logging and searched for entries in the Windows Event Viewer, but unfortunately, it seems as if BS 7 is not calling the .bat file at all.

batch

Kód másolása


@echo off
start “” “C:\Program Files (x86)\Far2\Far.exe” /e “%~1”
pause

All the best,
Erno