GetAbsolutePathName Method
Returns a complete and clearly-defined path from the specified provided path.
object.GetAbsolutePathName(pathspec)
Parameters
Object
Required. The name of FileSystemObject.
Pathspec
Required. The specified path to be converted to a complete and clearly defined path.
Description
If the path provides a complete reference starting from the root directory of the specified drive, the path is complete and has a clear meaning. If the path specifies the root directory folder of A mapped drive, the path can only end with a path separator.
Assume that the current directory is c: \ mydocuments \ reports. The following table provides an example.GetAbsolutePathNameMethod.
| 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" |
Applied to: FileSystemObject objects