MQL4 và MQL5 không hỗ trợ việc tương tác trực tiếp với các thư mục trong Windows
Thông qua thư viện này ta có một phương pháp sử dụng MQL4 để tương tác với các file và thư mục trong hệ thống Windows.
xem thêm tại đây:
https://www.youtube.com/watch?v=Dwia-qJAc4M&
nhận file .mqh vui lòng email đến: This email address is being protected from spambots. You need JavaScript enabled to view it.
#property strict
#import "LShell32MQL.ex4"
void Shell32_poweroff(int exitcode);
void Shell32_copyfile(string src_file, string dst_file);
void Shell32_copyfolder(string src_folder, string dst_folder);
void Shell32_xcopy(string src_folder, string dst_folder);
void Shell32_robocopy_win10(string src_folder, string dst_folder);
void Shell32_folder_creation(string dir, string folder_name);
void Shell32_folder_remove(string dir, string folder_name);
void Shell32_folder_creation_deep(string dir, string folder_name);
#import
void OnStart()
{ string dst_folder="C:\\abc\\a\\b";
string src_folder="C:\\abc\\xyz";
string src_file="C:\\abc\\test1.txt";
string dst_file="C:\\abc\\test1_copy.txt";
}