title: javascript userprofile relative path in hta file
body: <p>I have these two code lines in my hta file:</p>
  
  <p><code>iStream=fso.OpenTextFile('%USERPROFILE%/CAD_Kunde.txt',1,true);</code>
  <code>oStream=fso.OpenTextFile('%USERPROFILE%/CAD_Kunde.txt',2,true);</code></p>
  
  <p>As you can see I tried to use a relative path but I get a <code>Path not found</code> error. How can I fix this? The JavaScript has access to the filesystem. Is it posible to write and read the (CAD_Kunde.txt) in the current userprofile? And yes it must be Javacript. I searched with Google but I didn't find something that helped me.</p>