Easy Tutorial
❮ Met Getbasename Met Close ❯

ASP GetFileName Method



The GetFileName method returns a string containing the file name or folder name of the last component in the specified path.

Syntax

Parameter Description
path Required. The path to a specific file or folder.

Examples

Get file name:

Get folder name:


❮ Met Getbasename Met Close ❯