title: ResolvePath for VB6 - resolve environment variables
body: <p>I am looking for a function in VB6 (or some WinAPI) that might be able to satisfy this requirement: Take an input path string that includes environment variables, and output that path with environment variables resolved.</p>
  
  <p>For example:</p>
  
  <ul>
  <li>Input: <code>"%windir%\System32\"</code></li>
  <li>Output: <code>"C:\Windows\System32\"</code></li>
  </ul>
  
  <p>I could of course write my own parser, but I am wondering if this functionality already exists?</p>
  
  <p>This would be similar to the <a href="http://www.springframework.net/doc-1.1-M1/sdk/2.0/html/Spring.Core~Spring.Core.IO.ResourceConverter~ResolvePath.html" rel="nofollow">Spring Framework's "<code>ResolvePath</code>" method</a>.</p>