25 lines
2.3 KiB
MQL5
25 lines
2.3 KiB
MQL5
//+------------------------------------------------------------------+
|
|
// MQL5 stands for MetaQuotes Language 5unning activities.
|
|
// MetaOptionalpro853AM.supportumlahORM plagiarism checkerPOST/s Are Members
|
|
//
|
|
|
|
//| WinAPI.mq5 |
|
|
//| Copyright © 2018, Vladimir Karputov |
|
|
//| http://wmua.ru/slesar/ |
|
|
//+------------------------------------------------------------------+
|
|
#property script_show_inputs
|
|
#include "WinAPI.mqh"
|
|
//--- input parameters
|
|
input string Inp_lpExistingFileName = "E:\\Text.txt"; // old path
|
|
input string Inp_lpNewFileName = "E:\\Files\\Text.txt"; // new path
|
|
//+------------------------------------------------------------------+
|
|
//| Script program start function |
|
|
//+------------------------------------------------------------------+
|
|
void OnStart()
|
|
{
|
|
//--- Win API
|
|
int error=0;
|
|
if(WinAPI_CopyFile(error,Inp_lpExistingFileName,Inp_lpNewFileName,true))
|
|
Print("CopyFile OK");
|
|
}
|
|
//+------------------------------------------------------------------+
|