método ASP GetParentFolderName
Nombre del método GetParentFolderName devuelve la ruta especificada en la carpeta principal de archivos último ingrediente.
gramática
FileSystemObject.GetParentFolderName(path)
参数 | 描述 |
---|---|
path | 必需的。需返回其父文件夹名称的文件或文件夹的路径。 |
Ejemplos
<%
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
Referencia completa de objetos FileSystemObject