วิธีASP BuildPath
❮ อ้างอิงวัตถุ FileSystemObject ที่สมบูรณ์
เมธอด BuildPath ผนวกชื่อเข้ากับพาธที่มีอยู่
ไวยากรณ์
[newpath=]FileSystemObject.BuildPath(path,name)
Parameter | Description |
---|---|
path | Required. The path to append a name to |
name | Required. The name to append to the path |
ตัวอย่าง
<%
dim fs,path
set fs=Server.CreateObject("Scripting.FileSystemObject")
path=fs.BuildPath("c:\mydocuments","test")
response.write(path)
set fs=nothing
%>
Output:
c:\mydocuments\test
❮ อ้างอิงวัตถุ FileSystemObject ที่สมบูรณ์