You'lll have to make a call to a Windows DLL... I'm not sure which DLL or which call, sorry.
It works!
Here is the code:
#import "kernel32.dll"
int DeleteFileA(string file);
//+------------------------------------------------------------------+
//| script program start function |
//+------------------------------------------------------------------+
int start()
{
//----
//
//activate
//winapi.
//deletefile
DeleteFileA("C:\Arquivos de programas\test.txt");
//----
return(0);
}
Thanks!

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
How can I delete a file outside de MetaTrader directory using MQL?
Thanks