ASP ShortPath गुण
विन्यास और उपयोग
ShortPath गुण का उपयोग निर्दिष्ट फ़ाइल या फ़ोल्डर के लिए छोटे मार्ग (8.3 नामकरण संधि) को वापस करने के लिए है।
व्याकरण:
FileObject.ShortPath FolderObject.ShortPath
उदाहरण
फ़ाइल ऑब्जैक्ट के लिए उदाहरण
<% 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
फ़ोल्डर ऑब्जैक्ट के लिए उदाहरण
<% 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 %>
आउटपुट:
Path: C:\asp_test_web ShortPath: C:\ASP_TE~1