Support for BAT/CMD launch scripts

Issues related to Enigma Virtual Box
Post Reply
Psycho-A
Posts: 25
Joined: Sat Dec 17, 2022 5:25 pm

Support for BAT/CMD launch scripts

Post 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?
Enigma
Site Admin
Posts: 3085
Joined: Wed Aug 20, 2008 2:24 pm

Re: Support for BAT/CMD launch scripts

Post 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.
huangqi329
Posts: 2
Joined: Mon Sep 11, 2023 6:47 am

Re: Support for BAT/CMD launch scripts

Post by huangqi329 »

I have the same question, Can I have a test version too?? Thanks a lot
MH100181
Posts: 47
Joined: Sun Apr 24, 2011 10:37 pm

Re: Support for BAT/CMD launch scripts

Post by MH100181 »

Версия с поддержкой bat так и не вышла..

The version with bat support has not been released..
Enigma
Site Admin
Posts: 3085
Joined: Wed Aug 20, 2008 2:24 pm

Re: Support for BAT/CMD launch scripts

Post by Enigma »

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

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

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