Files
MT5-EA-Sniper-Strategy/compile.bat
T

42 lines
907 B
Batchfile
Raw Normal View History

@echo off
echo === MQL5 Compilation Test ===
echo.
set "SOURCE_FILE=D:\Projects\MT5-EA-Sniper-Strategy\src\SniperEA.mq5"
set "METAEDITOR=C:\Program Files\MetaTrader 5\metaeditor64.exe"
echo Checking files...
if not exist "%SOURCE_FILE%" (
echo ERROR: Source file not found: %SOURCE_FILE%
pause
exit /b 1
)
if not exist "%METAEDITOR%" (
echo ERROR: MetaEditor not found: %METAEDITOR%
pause
exit /b 1
)
echo Source file: %SOURCE_FILE%
echo MetaEditor: %METAEDITOR%
echo.
echo Starting compilation...
"%METAEDITOR%" /compile:"%SOURCE_FILE%"
echo.
echo Checking for compiled file...
set "EX5_FILE=D:\Projects\MT5-EA-Sniper-Strategy\src\SniperEA.ex5"
if exist "%EX5_FILE%" (
echo SUCCESS: Compilation completed!
echo File: %EX5_FILE%
dir "%EX5_FILE%"
) else (
echo ERROR: Compilation failed - no .ex5 file found
)
echo.
echo === Compilation Test Complete ===
pause