I want to test ASpUpload and ASPJPEG, but I need the drive address on the server where the site files are stored.
How do I find what the location of my site files are on the server?
Thanks
I want to test ASpUpload and ASPJPEG, but I need the drive address on the server where the site files are stored.
How do I find what the location of my site files are on the server?
Thanks
You need to play with Server.MapPath
http://www.devguru.com/Technologies/asp/quickref/server_mappath.html
Try this:
<%= Response.Write(request.ServerVariables("APPL_PHYSICAL_PATH"))%>
T
I’ve written a little script that will show you all the server variables:
Here is the code:
[CODE]
Display all IIS Request.ServerVariables body{ font-family: Georgia, "Times New Roman", Times, serif; padding:5px; margin:5px; }Written by: Tr1stan {19/11/04}
<% For Each ServerVar In Request.ServerVariables if x mod 2 = 0 then bgcolour = "#ccc" else bgcolour = "#999" end if response.write("And here is the zip:
Click here to dl
Always taking it one step too far ![]()
Tr1stan
When writing to text files, I find the absolute address path using the following code:
<%
response.write (Server.MapPath(“test.asp”))
%>
Create a page with the above code, save it as test.asp and place it in the folder that you want to find the file path. It will return somthing like:
D:\jodohome\yash\corfu-travel-guide.info\message_boards\test.asp