1 (edited by jrga 2025-08-23 21:51:26)

Topic: Sharing some information...

The "compilation" of the MVD 5.6 project generates a file called "project_name.exe." I took this file (exe) and placed it in the folder of another MVD project, and when I ran it, the application in the new folder worked normally...


I thought that the EXE of an MVD project could only be run in the project for which it was "compiled." I've since concluded that I was wrong!


The "project_name.exe" is a "runtime" that executes an MVD application, requiring only the files: graphics.dll, sqlite3.dll, forms.xlm, settings.ini, tables.ini, script.pas, and sqlite.db to be contained in the same folder as the EXE?


I also noticed that the EXE file used in this case could have any name.


This doesn't diminish MVD's capabilities in any way. On the contrary, it simply demonstrates its versatility!


I'm not an expert on the subject and just wanted to share the information.


P.S.: This BAT was the only one that worked on Windows 11 and allows you to run any MVD application, having the EXE in another folder (single EXE)

@echo off
setlocal

REM Pega a pasta onde o .bat está
set "BATDIR=%~dp0"

REM Caminho do exe original
set "SRC=C:\run_mvd.exe"

REM Copia o executável para a pasta do bat
copy /Y "%SRC%" "%BATDIR%run_mvd.exe" >nul

REM Vai para a pasta do bat
cd /d "%BATDIR%"

REM Executa o programa e espera terminar
start "" /wait "run_mvd.exe"

REM Apaga o executável sem pedir confirmação
del /f /q "run_mvd.exe"

endlocal
Roberto Alencar