VBS Tutorial: method-GetAbsolutePathName Method

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.