Open In App

ASP GetAbsolutePathName Method

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 

Example: Below example demonstrates the GetAbsolutePathName Method. 






<%
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
Article Tags :