在已存在路徑后追加名稱。
object.BuildPath(path, name)
object
必選項。 應為 FileSystemObject 的名稱。
path
必選項。 將被追加 name 的并存在的路徑。 路徑可以是絕對的或相對的,同時不需要指定已有文件夾。
name
必選項。 被追加到已存在的 path 后的名稱。
假如需要,BuildPath 方法會在已有路徑和名稱之間另外再插入一個路徑分隔符。
下面的例子說明了 BuildPath 方法的用法。
function GetBuildPath(path){var fso, newpath;fso = new ActiveXObject("Scrnewpath = fso.BuildPath(path, "New Folder");return(newpath);}
GetAbsolutePathName 方法 GetBaseName 方法 GetDriveName 方法 GetExtensionName 方法 GetFileName 方法 GetParentFolderName 方法 GetTempName 方法應用于: FileSystemObject 對象
新聞熱點
疑難解答