Метод ASP GetParentFolderName
Метод Имя GetParentFolderName возвращает указанный путь в родительской папке файлов последнего ингредиента.
грамматика
FileSystemObject.GetParentFolderName(path)
参数 | 描述 |
---|---|
path | 必需的。需返回其父文件夹名称的文件或文件夹的路径。 |
примеров
<%
dim fs,p
set fs=Server.CreateObject("Scripting.FileSystemObject")
p=fs.GetParentFolderName("c:\winnt\cursors\3dgarro.cur")
Response.Write(p)
set fs=nothing
%>
输出:
c:\winnt\cursors
dim fs,p
set fs=Server.CreateObject("Scripting.FileSystemObject")
p=fs.GetParentFolderName("c:\winnt\cursors\3dgarro.cur")
Response.Write(p)
set fs=nothing
%>
输出:
c:\winnt\cursors
Полная ссылка на объект FileSystemObject