ASP GetAbsolutePathName Method
Complete FileSystemObject Object Reference
The GetAbsolutePathName method returns the complete path from the root of the
drive for the specified path.
Syntax
|
FileSystemObject.GetAbsolutePathName(path)
|
| Parameter |
Description |
| path |
Required. The path to change to a complete path |
Examples
Assume that the current directory is c:\temp\test:
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
|
Complete FileSystemObject Object Reference
Click here to design a Stunning Flash Website for Free
Wix is a revolutionary web design tool that provides anyone with the possibility to create professional and beautiful websites for free.
With e-commerce features, search engine visibility and many more professional tools, Wix is the ultimate solution for creating a spectacular site while saving tons of money.
|