Getabsolutepathname method
Returns a complete and well-defined path from the specified path provided.
object.GetAbsolutePathName(pathspec)
Parameters
Object
Required option. The name that should be FileSystemObject.
Pathspec
Required option. The path specified, which is to be converted to a complete and well-defined path.
Description
If the path provides a full reference starting from the root directory of the specified drive, the path is complete and meaningful. If the path specifies the root folder of a mapped drive, the path can only end with the path delimiter (\).
Assuming the current directory is c:\mydocuments\reports, the following table shows an example of the action performed by the getabsolutepathname method.
| Pathspec |
return 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" |
Apply to: FileSystemObject object
-->