correct your declaration
#import "kernel32.dll" bool CopyFileA(string lpExistingFileName, string lpNewFileName, bool failIfExists); #import int start() { ... }btw: as long as you operate in or under the "experts\file" directory you might use the builtin MQL file functions (if they fit your use case).
hknight:
Is there a built-in MQL function for MT4 that will copy a file? I see a function for MLQ5 but not MLQ4.
Here are the file functions
Is there a built-in MQL function for MT4 that will copy a file? I see a function for MLQ5 but not MLQ4.

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 copy a file? This does not work:
ERROR: 'CopyFileA' - function is not defined