Mass updates to your folders and easy start Empty4 clients

MPTM's new home
Post Reply
xfactornos
Trader
Posts: 115
Joined: Fri May 23, 2014 5:43 pm
Location: Where I am...

Mass updates to your folders and easy start Empty4 clients

Post by xfactornos »

Hey everyone,
These are batch files I put together to make my life easier... They help me a lot, if they can help you then awesome! :yahoo:

Tool 1: Mass add EAs to your Clients.
If your like me you have 7+ demos running at one time, This will help you add your newly downloaded EA to all your MT4s at one time.

The first directory is the SOURCE the second one is the destination... The ping is just a delay between copies. 2 pings should be 1 second.

Code: Select all

ECHO Copying EAs to folders
xcopy /e /v "C:\Users\Xfactor\Google Drive\Best Forex\EAs" "C:\FinFX Demo 1\MQL4\experts" /Y
PING 127.0.0.1 -n 2 >nul
xcopy /e /v "C:\Users\Xfactor\Google Drive\Best Forex\EAs" "C:\FinFX Demo 2\MQL4\experts" /Y
PING 127.0.0.1 -n 2 >nul
xcopy /e /v "C:\Users\Xfactor\Google Drive\Best Forex\EAs" "C:\FinFX Demo 3\MQL4\experts" /Y
PING 127.0.0.1 -n 2 >nul
xcopy /e /v "C:\Users\Xfactor\Google Drive\Best Forex\EAs" "C:\FinFX Demo 4\MQL4\experts" /Y
PING 127.0.0.1 -n 2 >nul
xcopy /e /v "C:\Users\Xfactor\Google Drive\Best Forex\EAs" "C:\FinFX Demo 5\MQL4\experts" /Y
PING 127.0.0.1 -n 2 >nul
xcopy /e /v "C:\Users\Xfactor\Google Drive\Best Forex\EAs" "C:\FinFX Demo 6\MQL4\experts" /Y
PING 127.0.0.1 -n 2 >nul
xcopy /e /v "C:\Users\Xfactor\Google Drive\Best Forex\EAs" "C:\FinFX Demo 7\MQL4\experts" /Y
Tool 2: Start all MT4s at one time... I created this because Empty4 keeps crashing every 30mins or so, I got tired of trying to figure out which one went down.

Code: Select all

ECHO Starting All the Empty4 accounts... Please stand by...
REM Put the location of your Empty4 Client below...
start "" "C:\FinFX Demo 1\terminal.exe"
REM The below sends a ping to yourself 9 times which would be 8 second delay before opening the next program. Gives it time to load.
PING 127.0.0.1 -n 9 >nul
start "" "C:\FinFX Demo 2\terminal.exe"
PING 127.0.0.1 -n 9 >nul
start "" "C:\FinFX Demo 3\terminal.exe"
PING 127.0.0.1 -n 9 >nul
start "" "C:\FinFX Demo 4\terminal.exe"
PING 127.0.0.1 -n 9 >nul
start "" "C:\FinFX Demo 5\terminal.exe"
PING 127.0.0.1 -n 9 >nul
start "" "C:\FinFX Demo 6\terminal.exe"
PING 127.0.0.1 -n 9 >nul
start "" "C:\FinFX Demo 7\terminal.exe"
PING 127.0.0.1 -n 9 >nul
John 3:16
dudest
Trader
Posts: 1847
Joined: Tue May 08, 2012 2:37 pm

Mass updates to your folders and easy start Empty4 clients

Post by dudest »

Goodstuff!, thanks :)

[ ps: with (any) Scheduler, timed restart of many MT4s should be a breeze with your batch file (build 670...) ]

Cheers
Post Reply

Return to “Utilities Indicators and Scripts”