devxlogo

Finding Where Your ISP Stores Your ASP Files

Finding Where Your ISP Stores Your ASP Files

Although your Internet Service Provider (ISP) tells you the virtual directory that holds your Active Server Pages site, you may need to know the actual path where your files reside. For instance, if you are using an Access database, you may need to point your code to the exact location of the .MDB (Access database) file on the ISP’s server rather than to a virtual directory.

With the following Active Server Pages script, called path.asp, you can determine the exact path for yourself. Replace “kenc” in the third last line with the name of your virtual directory and then upload the file to your Web site. When you execute your customized version of path.asp, it will display the file system path such as C:INetPubWWWRootkenc.

 <%@ Language=VBScript %>Real PathYour virtual directory is in:
<%=server.MapPath("/kenc")%>
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist