@JUNCTION[dir] : Returns the directory referenced by the specified junction.

 

Example:

 

mklink /j test2 test

Junction created for test2 <<===>> test

 

echo %@junction[test2]

test