Page 1 of 1

Support for BAT/CMD launch scripts

Posted: Wed Jan 18, 2023 2:57 am
by Psycho-A
Some programs require pre-launch via command-line scripts (.bat or .cmd). I tried to specify them as a startup file, but EVB doesn't want to build the project, since it only needs the .exe file.

I tried to substitute an exe stub that would run the .cmd script by its own means. The project is compiled - however, the cmd file itself still doesn't run, saying that the script hasn't been found. The problem can be solved only if we rigidly prescribe the launch of the .cmd file via "cmd /c script.cmd" in an exe file like the SFX archive type.

Accordingly, I conclude that EVB doesn't know how to share a virtual file system with processes that run through Shell Execute, not directly.

Can this be fixed in the future? Is it possible to add native support for launching BAT/CMD (also, the ability to hide the console window would be perfect!), or correct processing of Shell Execute?

Re: Support for BAT/CMD launch scripts

Posted: Wed Jan 18, 2023 7:02 am
by Enigma
Hi, we have already implemented this ability in recent version (not released yet).

We will send it to you by email, so you can check it out, together with option for temporary file names.

Re: Support for BAT/CMD launch scripts

Posted: Mon Sep 11, 2023 8:36 am
by huangqi329
I have the same question, Can I have a test version too?? Thanks a lot

Re: Support for BAT/CMD launch scripts

Posted: Mon May 27, 2024 10:34 pm
by MH100181
Версия с поддержкой bat так и не вышла..

The version with bat support has not been released..

Re: Support for BAT/CMD launch scripts

Posted: Tue May 28, 2024 8:05 am
by Enigma
MH100181 wrote: Mon May 27, 2024 10:34 pm Версия с поддержкой bat так и не вышла..
Вышла, давно уже.

Проблема была не просто в поддержке BAT, а возможности проецировать виртуальный контент между процессами разной архитектуры. Эта возможность теперь есть, опция Share to processes of any platform.

Конечно виртуализация .bat файла напрямую невозможно, и такого точно никогда не будет сделано, но теперь можете "конвертировать" bat в exe и его паковать, включив все опции в EVB, все будет работать.