- Not without using DLL calls.
- For security reasons, work with files is strictly controlled in the MQL4 language. Files with which file operations are conducted using MQL4 means, cannot be outside the file sandbox.
FileOpen - File Functions - MQL4 Reference
You can do it by creating a hard link to the folder you want to access inside any of the metatrader files folders (if it's for personal use, anything else requires DLLs)
*Edit: junction as William said, not hard link
Hard link for a file. Or create a junction (mklink /J) under “«DataFolder»\MQL4\Files”

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
Can a file that exists outside of the MetaTrader folders be opened?
e.g. "A:\abc.txt"