Download MetaTrader 5

open a file via a shortcut with FileOpen()

To add comments, please log in or register
Post web links to other trader's signals and make profit
graziani 2016.03.15 17:27 

When i try to open a shortcut with FileOpen(), it opens the shortcut file itself, instead of file this shortcut is pointing to.

I thought that the shortcut is actually a link in some OS layer, but it obviously isn't.

Any ideas how to solve this? 

Ex Ovo Omnia
Ex Ovo Omnia 2016.03.15 18:59  

Use a symbolic link (or a junction for a directory) instead of the shortcut. Shortcut is actually another file. 

graziani 2016.03.16 12:31  

Thansk Ovo,

i was just wondering if it is possible with shortcuts, as i have a bunch of files in different directories....

It obviously isn't, so mklink it is.

To add comments, please log in or register