Skip to end of banner
Go to start of banner

Get file name from path

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Function to get the file name from a full file path.
function getFileName(string filePath) {
    int start = lastIndexOf(filePath, "\\");
    string fileName = trim(substring(filePath, start+1, length(filePath)));
    return fileName;
}
  • No labels