ປະສົງ ShortPath ASP

ການອະທິບາຍແລະການນໍາໃຊ້

ປະສົງ 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