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" // MQL4\Library\LShell32.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"; // cho chạy từng dòng lệnh để xem kết quả //Shell32_copyfile(src_file,dst_file); //Shell32_xcopy(src_folder,dst_folder); //Shell32_copyfolder(src_folder,dst_folder); //Shell32_robocopy_win10(src_folder,dst_folder); //Winkey + R >> %appdata%\\MetaQuotes //Shell32_folder_creation(); //Shell32_folder_remove(); //Shell32_poweroff(1); //Shell32_folder_creation_deep(); //Shell32_folder_remove("%appdata%\\MetaQuotes","a"); }
If for any reason you do not like the purchased program, you can request a refund within 30 days from the date of purchase. You can also make an exchange for any other product at an equal cost or by paying the difference.
Simply send a request for refund or exchange with your order number by email: support@market-fx.pro.
Refund requests received more than 30 days after purchase will be rejected.