ASP ShortName Property
Tattalinin da Yawon
属性 ShortName wani ɗaya ce domin kira shafin ko ɗanar ɗin (mafiyar kira 8.3 na shafin).
Girmi:
FileObject.ShortName FolderObject.ShortName
gaɗon ɗanar ɗin ɗaya ɗin File
<% dim fs,f set fs=Server.CreateObject("Scripting.FileSystemObject") set f=fs.GetFile("c:\hitcounterfile.txt")) Response.Write("Name: " & f.Name) Response.Write("<br />ShortName: " & f.ShortName) set f=nothing set fs=nothing %>
Output:
Name: hitcounterfile.txt ShortName: HITCOU~1.TXT
gaɗon ɗanar ɗin ɗaya ɗin Folder
<% dim fs,fo set fs=Server.CreateObject("Scripting.FileSystemObject") set fo=fs.GetFolder("c:\asp_test_web") Response.Write("Name: " & fo.Name) Response.Write("<br />ShortName: " & fo.ShortName) set fo=nothing set fs=nothing %>
Output:
Name: asp_test_web ShortName: ASP_TE~1