title: How to specify path in .config file relative to the file?
body: <p>An app I use interprets a .NET <code>.config</code> file. I added a line specifying the path to a certificate it needs</p>
  
  <pre><code>&lt;add key="Certificate" value="..\certificate.abc"/&gt;
  </code></pre>
  
  <p>However, I found the app only works when run from the exact folder its <code>.exe</code> and <code>.config</code> reside. If run from another folder, it fails, because it looks for the certificate at <code>../</code> expanded <em>relative to the working directory</em>.</p>
  
  <p>What should I write in the config file, to make sure the path is <code>..\certificate.abc</code> expanded <em>relative to the config file</em> rather the working directory? </p>
  
  <p>I can't change the app (it's not mine), I can only change the config file.</p>