title: How do you get the name of the current virtual directory using ASP Classic?
body: <p>How do you get the name of the current virtual directory using ASP Classic? In ASP.NET you can use <code>Request.ApplicationPath</code> to find this.</p>
  
  <p>For example, let's say you have a URL like this:</p>
  
  <pre>http://localhost/virtual_directory/subdirectory/file.asp</pre>
  
  <p>In ASP.NET, <code>Request.ApplicationPath</code> would return <b>/virtual_directory</b></p>