ParentFolder

ASP ParentFolder xususiyati


❮ Folder obyektining to‘liq ma’lumotnomasi

ParentFolder xususiyati ko‘rsatilgan fayl yoki papkaning ota papkasi uchun folder obyektini qaytarish uchun ishlatiladi.


Sintaksis

FileObject.ParentFolder FolderObject.ParentFolder

File obyekti uchun misol

<% dim fs,f set fs=Server.CreateObject("Scripting.FileSystemObject") set f=fs.GetFile("c:\asp\test\test.asp") Response.Write("The file test.asp is in the folder: ") Response.Write(f.ParentFolder) set f=nothing set fs=nothing %> Output: The file test.asp is in the folder: C:\asp\test

Folder obyekti uchun misol

<% dim fs,fo set fs=Server.CreateObject("Scripting.FileSystemObject") set fo=fs.GetFolder("c:\asp\test") Response.Write("The folder test is in the folder: ") Response.Write(fo.ParentFolder) set fo=nothing set fs=nothing %> Output: The folder test is in the folder: C:\asp

❮ Folder obyektining to‘liq ma’lumotnomasi

W3Schools Pathfinder

Yutuqlaringizni kuzating – bu bepul!