⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vbs301.htm

📁 VBScript 是一种脚本语言
💻 HTM
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><HTML>
<HEAD>
<TITLE>GetAbsolutePathName Method</TITLE> 
<META NAME="CATEGORY" CONTENT="Language Reference"> 
<META NAME="MS.LOCALE" CONTENT="EN-US">
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso8859-1">
<META NAME="PRODUCT" CONTENT="Visual Basic Scripting Edition">
<META NAME="TECHNOLOGY" CONTENT="SCRIPTING">
<META NAME="Keywords" CONTENT="">
<META NAME="Description" CONTENT="GetAbsolutePathName Method">
</HEAD>
<BODY BGCOLOR=FFFFFF LINK=#0033CC>
<!--TOOLBAR_START-->
<!--TOOLBAR_EXEMPT-->
<!--TOOLBAR_END-->
<FONT FACE="Verdana, Arial, Helvetica" SIZE=2>
<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0 WIDTH=100%><TR VALIGN=TOP><TD WIDTH=360>
<FONT SIZE=1 COLOR=#660033>Microsoft&#174; Visual Basic&#174; Scripting Edition</FONT><BR>
<FONT SIZE=5 COLOR=#660033><B>GetAbsolutePathName Method</B></FONT></TD>


<TD ALIGN=RIGHT>
<FONT SIZE=2>&nbsp;<A HREF="vbstoc.htm">Language&nbsp;Reference</A>&nbsp;<BR>
<A HREF="vbs16.htm">Version&nbsp;3</A>&nbsp;<P></FONT>

</TD></TR>
</TABLE> 

<FONT SIZE=2><p>
<A HREF="vbs303.htm">See Also</A>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<A HREF="vbs302.htm">Applies To</A></FONT>
<HR noshade SIZE=1>

<H5>Description</H5>
<BLOCKQUOTE>Returns a complete and unambiguous path from a provided path specification.</BLOCKQUOTE>

<H5>Syntax</H5>
<BLOCKQUOTE><i>object</i>.<b>GetAbsolutePathName(</b><i>pathspec</i><b>)</b> 

<P>The <b>GetAbsolutePathName</b> method syntax has these parts:
<P>
<TABLE WIDTH=87% BORDER=1 CELLPADDING=5 CELLSPACING=0>
<TR VALIGN=TOP BGCOLOR="#DDDDDD">
<TD><FONT SIZE=2><b>Part</b></FONT></TD>
<TD><FONT SIZE=2><b>Description</b></FONT></TD></TR>
<tr valign=top><td><font size=2><i>object</i></font></td>
<td><font size=2>Required. Always the name of a <b>FileSystemObject</b>.</FONT></TD></TR>
<tr valign=top><td><font size=2><i>pathspec</i></font></td>
<TD><FONT SIZE=2>Required. Path specification to change to a complete and unambiguous path.</font></td></tr>


</TABLE></BLOCKQUOTE>

<H5>Remarks</H5>
<BLOCKQUOTE>
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.<p>

Assuming the current directory is c:\mydocuments\reports, the following table illustrates the behavior of the <b>GetAbsolutePathName</b> method.<p>

<TABLE WIDTH=87% BORDER=1 CELLPADDING=5 CELLSPACING=0>
<TR VALIGN=TOP BGCOLOR="#DDDDDD">
<TD><FONT SIZE=2><b><i>pathspec</i></b></FONT></TD>
<TD><FONT SIZE=2><b>Returned path</b></FONT></TD></TR>
<TR VALIGN=TOP><TD><FONT SIZE=2>"c:"</FONT></TD>
<TD><FONT SIZE=2>"c:\mydocuments\reports"</FONT></TD></TR>
<TR VALIGN=TOP><TD><FONT SIZE=2>"c:.."</FONT></TD>
<TD><FONT SIZE=2>"c:\mydocuments"</FONT></td></tr>
<tr valign=top><td><font size=2>"c:\\\"</font></td>
<td><font size=2>"c:\"</font></td></tr>
<tr valign=top><td><font size=2>"c:*.*\may97"</font></td>
<td><font size=2>"c:\mydocuments\reports\*.*\may97"</font></td></tr>
<tr valign=top><td><font size=2>"region1"</font></td>
<td><font size=2>"c:\mydocuments\reports\region1"</font></td></tr>
<tr valign=top><td><font size=2>"c:\..\..\mydocuments"</font></td>
<td><font size=2>"c:\mydocuments"</font></td></tr>


</TABLE>

</BLOCKQUOTE><P>
<hr noshade size=1>
<FONT SIZE=2>
<p align=center><em><a href="../../common/colegal.htm">&copy; 1997 by Microsoft Corporation. All rights reserved.</a></em></p> 
</FONT></FONT></BODY></HTML>





























































⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -