prepare workspace by eu5, add some scripts and node modules on Documents folder, extends compile script and also node module to automate usefull most commonly used compilation tasks and also create required npm scripts and vscode debug lunch tasks based on them ...

This commit is contained in:
2024-01-31 15:02:23 -08:00
parent b612162136
commit 732b6bba35
45 changed files with 3813 additions and 49 deletions
+26
View File
@@ -0,0 +1,26 @@
@echo off
set METAEDITOR="C:\Program Files\MetaTrader 5\MetaEditor64.exe"
set "LOGFILE=%~dpn1.log"
if "%~1"=="" (
echo "You must specify the first parameter to this batch file."
goto end
)
:: Compile the MQL5 way
%METAEDITOR% /compile:%1 /log
:: 0 = failed
:: 1 = everything good
echo "Error level %ERRORLEVEL%"
:: This dumps the log file to stdout so it can be seen.
:: It's assumed to be in the same directory as the expert file.
type "%LOGFILE%"
:: Once shown, get rid of the .log file.
erase "%LOGFILE%"
:end
:: If I want the CMD.exe window to go away, use exit
::exit %ERRORLEVEL%