Open In App

ASP GetAbsolutePathName Method

Last Updated : 23 Feb, 2021
Improve
Improve
Like Article
Like
Save
Share
Report

The GetAbsolutePathName Method in ASP is used for returning the complete full path starting from the root directory. It is an in-built method of the FileSystem Object.  

Syntax 

FileSystemObject.GetAbsolutePathName(path) 

Parameter Values 

  • path: It is a required attribute. It contains a string value that specifies the incomplete path that would be changed to a complete path.

Example: Below example demonstrates the GetAbsolutePathName Method. 

ASP




<%
dim gfg,path
set gfg=Server.CreateObject("Scripting.FileSystemObject")
path=gfg.GetAbsolutePathName("d:")
response.write("The Complete path is " + path)
%>


Output:

d:\Hello\GFG\sudo.txt

Like Article
Suggest improvement
Share your thoughts in the comments

Similar Reads