Método ASP GetBaseName
❮ Referência Completa do Objeto FileSystemObject
O método GetBaseName retorna o nome base de um arquivo ou pasta no caminho especificado.
Sintaxe
FileSystemObject.GetBaseName(path)
Parameter | Description |
---|---|
path | Required. The path for the file or folder whose base name is to be returned |
Exemplo
<%
dim fs
set fs=Server.CreateObject("Scripting.FileSystemObject")
Response.Write(fs.GetBaseName("c:\winnt\cursors\3dgarro.cur"))
set fs=nothing
%>
Output:
3dgarro
❮ Referência Completa do Objeto FileSystemObject