File Path by using FSO
By using FileSystemObject we can get the absolute path of any file. Something in a shared hosting environment we need to know the address or absolute path from the server root we need to know. By using FSO we can get it. Here is the code
FilePath=Server.MapPath("text.txt") ' located in the same director
Set FSOobj = Server.CreateObject("Scripting.FileSystemObject")
Response.Write " File Path = " & details.path
Set FSOobj = Nothing
This article is written by plus2net.com team.
Be the first to post comment on this article :