Welcome Forex EA downloads & MT4/MT5 auto-trading resources — EAs, Gold EAs, quant tools and real-world automation.
Sign In Sign Up

Demo_FileSize - MetaTrader 5 Script | Trading Script Download - MT4/MT5 Resources

author EAcpu | 4 reads | 0 comments |

This script sorts all CSV files in the common folder of all clients one by one to get their size. After getting the size, compare its value with the "InpThresholdSize" threshold and place the file in the "InpBigFolderName" or "InpSmallFolderName" named folder depending on the result. Thereby sorting large and small size files.

In addition to using the FileSize () function, there is also the FileFindFirst (), FileFindNext () and FileFindClose () functions used in the script to sort files, and the FileMove () function to move them.


Attachment download

📎 demo_filesize.mq5 (3.12 KB)

Source: MQL5 #1633

Verification code Refresh