欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

腳本運(yùn)行時(shí)庫  

BuildPath 方法

在已存在路徑后追加名稱。

object.BuildPath(path, name) 

參數(shù)

object
必選項(xiàng)。應(yīng)為 FileSystemObject 的名稱。
path
必選項(xiàng)。將被追加 name 的并存在的路徑。路徑可以是絕對(duì)的或相對(duì)的,同時(shí)不需要指定已有文件夾。
name
必選項(xiàng)。被追加到已存在的 path 后的名稱。

說明

如果需要,BuildPath 方法會(huì)在已有路徑和名稱之間另外再插入一個(gè)路徑分隔符。

下面的例子說明了 BuildPath 方法的用法。

[JScript]
function GetBuildPath(path)
{
   var fso, newpath;
   fso = new ActiveXObject("Scripting.FileSystemObject");
   newpath = fso.BuildPath(path, "New   Folder");
   return(newpath);
}   
[VBScript]
Function GetBuildPath(path)
   Dim fso, newpath
   Set fso = CreateObject("Scripting.FileSystemObject")
   newpath = fso.BuildPath(path, "Sub Folder") 
   GetBuildPath = newpath
End Function

請(qǐng)參閱

GetAbsolutePathName 方法 | GetBaseName 方法 | GetDriveName 方法 | GetExtensionName 方法 | GetFileName 方法 | GetParentFolderName 方法 | GetTempName 方法
應(yīng)用于:FileSystemObject 對(duì)象