Archive: Exepath and substed disk

Exepath and substed disk
Good day.
I need your help. I'm trying to get path for installer file - \$EXEPATH is working great. But when I start my executable from substed drive - for example I have drive E:\ and I substed it as W:\ - then I need real path for this file, i.e. E:\longpathtofile\, not W:\longpathtofile.
Windows system function GetCurrentDirectory return just the same, but I need the real path.
With best regards.

You could try calling QueryDosDevice or GetFinalPathNameByHandle with the system plugin but first maybe you could explain why you need to do this and why the other path is not "real"?

Just when I add a rule to windows firewall it doesn't work with such path. Thanks, I'll try.