ASP ShortPath-eigenschap

Definitie en gebruik

Het ShortPath-eigenschap wordt gebruikt om de korte pad van een specifiek bestand of map terug te geven (8.3-namingconventie).

Syntaxis:

FileObject.KortePad
FolderObject.KortePad

Voorbeeld

Voorbeeld voor File object

<%
dim fs,f
zet fs=Server.CreateObject("Scripting.FileSystemObject")
zet f=fs.GetFile("c:\asp_test_web\hitcounterfile.txt")
Response.Write("Pad: " & f.Pad)
Response.Write("<br />ShortPath: " & f.KortePad)
zet f=nothing
set fs=nothing
%>

Uitvoer:

Pad: C:\asp_test_web\hitcounterfile.txt
Korte pad: C:\ASP_TE~1\HITCOU~1.TXT

Voorbeeld voor Folder object

<%
dim fs,fo
zet fs=Server.CreateObject("Scripting.FileSystemObject")
zet fo=fs.GetFolder("c:\asp_test_web")
Response.Write("Pad: " & fo.Pad)
Response.Write("<br />ShortPath: " & fo.ShortPath)
set fo=nothing
set fs=nothing
%>

Uitvoer:

Path: C:\asp_test_web
ShortPath: C:\ASP_TE~1