ASP ParentFolder အရိုး

အဆိုပါအက္ခရာ နှင့် အသုံးပြုခြင်း

ParentFolder အရိုး သည် သတ်မှတ်ထားသော ဖန်တီ သို့မဟုတ် ဖန်တီအုပ် အတွက် ဖန်တီ အရိုး ပြန်လည်ပေးသည်。

အက္ခရာ:

FileObject.ParentFolder
FolderObject.ParentFolder

အမှတ်

File အရာတို့ အမျိုးအစား အကြောင်း

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

输出:

The file test.asp is in the folder: D:\asp\test

Folder အရာတို့ အမျိုးအစား အကြောင်း

<%
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("d:\asp\test")
Response.Write("ဖန်တီ စည်းကမ်း test သည် ဖန်တီ: ")
Response.Write(fo.ParentFolder)
set fo=nothing
set fs=nothing
%>

输出:

The folder test is in the folder: D:\asp