ASP GetAbsolutePathName Method
Definition and Usage
The GetAbsolutePathName method returns the complete path from the root drive for the specified path.
Syntax:
FileSystemObject.GetAbsolutePathName(path)
Parameter | Description |
---|---|
path | Required. Modify to the full path of the path. |
Instance
Example 1
<% dim fs,path set fs=Server.CreateObject("Scripting.FileSystemObject") path=fs.GetAbsolutePathName("c:") response.write(path) %>
Output:
c:\temp\test
Example 2
<% dim fs,path set fs=Server.CreateObject("Scripting.FileSystemObject") path=fs.GetAbsolutePathName("mydoc.txt") response.write(path) %>
Output:
c:\temp\test\mydoc.txt
Example 3
<% dim fs,path set fs=Server.CreateObject("Scripting.FileSystemObject") path=fs.GetAbsolutePathName("private\mydoc.txt") response.write(path) %>
Output:
c:\temp\test\private\mydoc.txt