วิธี GetBaseName ASP
วิธีการส่งกลับชื่อ GetBaseName อ้างอิงในเส้นทางที่ระบุหรือโฟลเดอร์แฟ้ม
ไวยากรณ์
FileSystemObject.GetBaseName(path)
参数 | 描述 |
---|---|
path | 必需的。需被返回基准名称的文件或文件夹的路径。 |
ตัวอย่าง
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
Response.Write(fs.GetBaseName("c:\winnt\cursors\3dgarro.cur"))
set fs=nothing
%>
输出:
3dgarro
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
Response.Write(fs.GetBaseName("c:\winnt\cursors\3dgarro.cur"))
set fs=nothing
%>
输出:
3dgarro
อ้างอิงวัตถุ FileSystemObject สมบูรณ์