title: Classic ASP: replacing a string
body: <p>The following code:</p>
  
  <pre><code>Dim url       
  url = fso.GetAbsolutePathName(objFile)
  </code></pre>
  
  <p>gives me </p>
  
  <pre><code>C:\KB\Dev\Java.htm
  </code></pre>
  
  <p>Then, when I write it as an href:</p>
  
  <pre><code>Response.Write("&lt;a href='" + url + "'&gt;" + objFile.Name + "&lt;/a&gt;&lt;br&gt;")
  </code></pre>
  
  <p>the link is translated in browser into:</p>
  
  <pre><code>file:///C:/KB/Dev/Java/Java.htm
  </code></pre>
  
  <p>whereas I will need it to be</p>
  
  <pre><code>file://172.20.4.107/c$/KB/Dev/Java/Java.htm
  </code></pre>
  
  <p>or else, the link won't be valid for navigation.</p>
  
  <p>I was trying:</p>
  
  <pre><code>url = Replace(url, "///", "//172.20.4.107/")
  url = Replace(url, "c:", "c$")
  Response.Write(url &amp; "&lt;br&gt;")
  </code></pre>
  
  <p>but nothing seems to be changed.</p>