Table of contents
TOC
Collapse the table of content
Expand the table of content

GetAbsolutePathName Method

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

Description Returns a complete and unambiguous path from a provided path specification. Syntaxobject. GetAbsolutePathName(pathspec) The GetAbsolutePathName method syntax has these parts:

PartDescription
objectRequired. Always the name of a FileSystemObject.
pathspecRequired. Path specification to change to a complete and unambiguous path.

Remarks A path is complete and unambiguous if it provides a complete reference from the root of the specified drive. A complete path can only end with a path separator character ( \ ) if it specifies the root folder of a mapped drive. Assuming the current directory is c:\mydocuments\reports, the following table illustrates the behavior of the GetAbsolutePathName method.

pathspecReturned path
"c:""c:\mydocuments\reports"
"c:..""c:\mydocuments"
"c:\""c:"
"c:.\may97""c:\mydocuments\reports*.*\may97"
"region1""c:\mydocuments\reports\region1"
"c:....\mydocuments""c:\mydocuments"
© 2018 Microsoft