HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

ASP GetAbsolutePathName Method


FileSystemObject Object Reference 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


FileSystemObject Object Reference Complete FileSystemObject Object Reference

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE