Find out the real path of a file from a SUBST drive

1

Is it possible to find the real location of a file, knowing its location on a drive created with subst? Example:

> subst d: c:\dir\
> real_path "c:\file"
c:\file
> real_path "d:\file"
c:\dir\file

Dmitry Grigoryev

Posted 2018-04-04T15:48:26.200

Reputation: 7 505

1Does running just subst tell you? – I say Reinstate Monica – 2018-04-04T15:58:52.200

@TwistyImpersonator parsing the output of subst is indeed possible, but I hoped to find a simpler way. – Dmitry Grigoryev – 2018-04-04T16:02:15.827

No answers