title: Does File Exist? ASP Classic
body: <p>Here is a simple example from W3 Schools:</p>
  <pre><code>dim fs
  
  strFilePath = &quot;http://lanswinweb1/assembly/scrollingimages/images/&quot; &amp; Session(&quot;Num&quot;) &amp; &quot;.jpg&quot;
  'strFilePath = &quot;P:\Assembly\Team Performance Boards\LDT Scrolling Monitor\&quot; &amp; Session(&quot;Num&quot;) &amp; &quot;.jpg&quot;
  set fs=Server.CreateObject(&quot;Scripting.FileSystemObject&quot;)
  if fs.FileExists(strFilePath) then
    Session(&quot;Num&quot;) = Session(&quot;Num&quot;) + 1
    response.write(&quot;File: &quot; &amp; strFilePath &amp; &quot; exists!&quot;)
  else
    response.write(&quot;File: &quot; &amp; strFilePath &amp; &quot; does not exist!&quot;)
  end if
  set fs=nothing
  </code></pre>
  <p>This is giving me:</p>
  <p><a href="https://i.stack.imgur.com/Z6FE7.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z6FE7.jpg" alt="enter image description here" /></a></p>
  <p>Yet when I go to that link in the web address, it works:
  <a href="https://i.stack.imgur.com/sblXj.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/sblXj.jpg" alt="enter image description here" /></a></p>
  <p>So, what is it that I am missing or doing wrong?</p>