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