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

« Previous Version 2 Current »

We've encountered an issue exporting this macro. Please try exporting this page again later.
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