title: Get location of file that is defined as alias
body: <p>I defined some permanent aliases (within my &quot;profile.ps1&quot;) to files I need to access regularly like</p>
  <pre><code>set-alias -name myfile1        -value N:\somefolder\morefolders\anyfile.txt
  </code></pre>
  <p>Now I want to get the directory where the file is located, but I'd prefer not to define additional aliases. How can I do this?</p>