ASP ShortPath ပိုင်ဆိုင်မှု
❮ ဖိုင် Object ရည်ညွှန်းချက်ကို အပြီးသတ်ပါ။
ShortPath ပိုင်ဆိုင်မှုကို သတ်မှတ်ထားသော ဖိုင် သို့မဟုတ် ဖိုင်တွဲ၏ လမ်းကြောင်းတို (8.3 အမည်ပေးခြင်း ကွန်ဗင်းရှင်း) ကို ပြန်သွားရန် အသုံးပြုသည်။
အထားအသို
FileObject.ShortPath
FolderObject.ShortPath
File object အတွက် ဥပမာ
<%
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
%>
Output:
Path: C:\asp_test_web\hitcounterfile.txt
ShortPath: C:\ASP_TE~1\HITCOU~1.TXT
Folder object အတွက် ဥပမာ
<%
dim fs,fo
set fs=Server.CreateObject("Scripting.FileSystemObject")
set fo=fs.GetFolder("c:\asp_test_web")
Response.Write("Path: " & fo.Path)
Response.Write("<br>ShortPath: " & fo.ShortPath)
set fo=nothing
set fs=nothing
%>
Output:
Path: C:\asp_test_web
ShortPath: C:\ASP_TE~1
❮ ဖိုင် Object ရည်ညွှန်းချက်ကို အပြီးသတ်ပါ။