title: vbscript / Classic ASP - Is there any way to get your own file name programmatically?
body: <p>I was just reviewing some old code and found the following (inside foo.asp):</p>
  
  <pre><code>Const ASP_FILENAME = "foo.asp"  ' TODO: Update this to the name of this file (if changed)
  </code></pre>
  
  <p>The variable is only used for logging errors.  (ie. "Error in foo.asp - Could not create xxxxx object.") Is there any way to avoid this?  </p>
  
  <p>Thanks!</p>