ASP Path အကိုးအခံ
ဒီပုံစံ နှင့် အသုံးပြု
Path အကိုးအခံ အသုံးပြုသည် ကိုယ်စားပုံစံ အတွက် သတ်မှတ်ထားသော စက်တင်ဆာချက် သို့မဟုတ် ဖိုင် လမ်း ကို ပြန်လည်ပေးသည်。
မှတ်ချက်:စက်တင်ဆာချက်: ကိုယ်စားပုံစံ အတွက် လမ်း မပါဘဲ သို့မဟုတ် ဘရောက် မပါဘဲ အုပ်ချုပ်သည်။ ဥပမာ၊ C အုပ်ချုပ်သည် C: ဖြစ်သည်။
အပြောအရ
DriveObject.Path FileObject.Path FolderObject.Path
အမှတ်
ဖော်ပြချက်: Drive အပေါ်
<% dim fs,d set fs=Server.CreateObject("Scripting.FileSystemObject") set d=fs.GetDrive("c:") Response.Write("The path is " & d.Path) set d=nothing set fs=nothing %>
ပြန်လည်ပေးခြင်း:
လမ်း: C:
ဖော်ပြချက်: File အပေါ်
<% dim fs,f set fs=Server.CreateObject("Scripting.FileSystemObject") set f=fs.GetFile("d:\asp\test\test.asp") Response.Write("The path is: " & f.Path) set f=nothing set fs=nothing %>
ပြန်လည်ပေးခြင်း:
လမ်း: D:\asp\test\test.asp
ဖော်ပြချက်: Folder အပေါ်
<% dim fs,fo set fs=Server.CreateObject("Scripting.FileSystemObject") set fo=fs.GetFolder("d:\asp\test") Response.Write("The path is: " & fo.Path) set fo=nothing set fs=nothing %>
ပြန်လည်ပေးခြင်း:
လမ်းကြောင်းဖြစ်သည့်အားဖြင့်: D:\asp\test