ASP GetBaseName method
Definition and Usage
The GetBaseName method returns the base name of the file or folder in the specified path.
Syntax:
FileSystemObject.GetBaseName(path)
parameter | description |
---|---|
path | required. The base name must be returned by the path of the file or folder. |
instance
<% dim fs set fs=Server.CreateObject("Scripting.FileSystemObject") Response.Write(fs.GetBaseName("c:\winnt\cursors\3dgarro.cur")) set fs=nothing %>
Вывод:
3dgarro