ASP ShortPath သုံးစွဲပုံ
အသုံးပြုခြင်း နှင့် အမှတ်အသား
ShortPath သုံးစွဲပုံ နှင့် အသုံးပြုခြင်း သုံးစွဲပုံ (8.3 ဖော်ပြချက် အင်္ဂလိပ်ဘာသာ)
အပြောအချက်:
FileObject.ShortPath FolderObject.ShortPath
File အပေါ်အချက်အလက် အစားအသား
<% dim fs,f set fs=Server.CreateObject("Scripting.FileSystemObject") set f=fs.GetFile("c:\asp_test_web\hitcounterfile.txt") Response.Write("Path: " & f.Path) Response.Write("<br />ShortPath: " & f.ShortPath) set f=nothing set fs=nothing %>
တုံ့ပြန်ခြင်း:
Path: C:\asp_test_web\hitcounterfile.txt ShortPath: C:\ASP_TE~1\HITCOU~1.TXT
Folder အပေါ်အချက်အလက် အစားအသား
<% dim fs,fo set fs=Server.CreateObject("Scripting.FileSystemObject") set fo=fs.GetFolder("c:\asp_test_web") Response.Write("လမ်း: " & fo.Path) Response.Write("<br />ShortPath: " & fo.ShortPath) set fo=nothing set fs=nothing %>
တုံ့ပြန်ခြင်း:
Path: C:\asp_test_web ShortPath: C:\ASP_TE~1