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:
+26
@@ -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%
|
||||
Reference in New Issue
Block a user