ASP GetParentFolderName နည်းလမ်း
❮ ပြီးပြည့်စုံသော FileSystemObject အရာဝတ္ထု ရည်ညွှန်းချက်
GetParentFolderName နည်းလမ်းသည် သတ်မှတ်ထားသောလမ်းကြောင်းရှိ နောက်ဆုံးအစိတ်အပိုင်း၏ ပင်မဖိုင်တွဲ၏အမည်ကို ပြန်ပေးသည်။
အထားအသို
FileSystemObject.GetParentFolderName(path)
Parameter | Description |
---|---|
path | Required. The path for the file or folder whose parent folder name is to be returned |
ဥပမာ
<%
dim fs,p
set fs=Server.CreateObject("Scripting.FileSystemObject")
p=fs.GetParentFolderName("c:\winnt\cursors\3dgarro.cur")
Response.Write(p)
set fs=nothing
%>
Output:
c:\winnt\cursors
❮ ပြီးပြည့်စုံသော FileSystemObject အရာဝတ္ထု ရည်ညွှန်းချက်