| GetAbsolutePathName 方法 |
|
GetAbsolutePathName 方法的语法有以下部分:
| 部分 | 描述 |
| object | 必选。应为 FileSystemObject 的名称。 |
| pathspec | 必选。指定的路径,该路径要转换为完整且含义明确的路径。 |
假定当前目录为 c:\mydocuments\reports,下表举例说明 GetAbsolutePathName 方法执行的操作。
| pathspec | 返回路径 |
| "c:" | "c:\mydocuments\reports" |
| "c:.." | "c:\mydocuments" |
| "c:\\\" | "c:\" |
| "c:*.*\may97" | "c:\mydocuments\reports\*.*\may97" |
| "region1" | "c:\mydocuments\reports\region1" |
| "c:\..\..\mydocuments" | "c:\mydocuments" |