..
The method of the FileSystemObject object GetAbsolutePathName returns the absolute path of the resource (a file or folder) you specified.
The only required parameter is the path (relative) of the resource you want to know the absolute path.
For example:
Dim fs, path
'I create an instance of the FileSystemObject
Set fs = Server.CreateObject ("Scripting.FileSystemObject")
'Revenue the absolute pathname of the file specified
path = fs.GetAbsolutePathName ("myfile.txt")
'Print to video
Response.Write (path)
'I cleaned
Set fs = Nothing
The output product will be something like:
c: \ www \ site \ myfile.txt
| |
ASP (Advanced)
Full course for creating dynamic Web sites. From 39 €. |
| |
ASP Zero (Ebook)
Learning Microsoft ASP and VBScript from scratch. At only 29 €. |
| |
ASP and Access (Ebook)
Managing a MS Access database with ASP. At only 29 €. |