sharing file or Fileread file write in a different folder

 

Simply use the cmd prompt in windows and create a junction link or symbolic link very easy:

in the command prompt type:  mklink  "C:\MyOriginalFile.txt"   "C:\MyDestinationFile.txt"

Make sure neither one of the files exist before hand. Once the link is created you can start using filewrite and fileread


Good luck

 
adavinci:

Simply use the cmd prompt in windows and create a junction link or symbolic link very easy:

in the command prompt type:  mklink  "C:\MyOriginalFile.txt"   "C:\MyDestinationFile.txt"

Make sure neither one of the files exist before hand. Once the link is created you can start using filewrite and fileread


Good luck

Already discussed before https://www.mql5.com/en/forum/138845 and you shouldn't limit just to a files folder, but you can share and access the whole content of experts folder as well. That way you sharing EA, CI and Script from one folder. Just make sure they are compiled with the lowest build.

 
On Xp (a lot of VPS's) you can use
fsutil hardlink create dest originalFile
as mklink doesn't exist. And you'll have to use junctions for directories.
Reason: